Skip to content

Commit 3812a44

Browse files
committed
fix(ImplicitBoolean): properly retrieve mtime from superclass
MTime access requires appropriate closure/private variable
1 parent 55368dc commit 3812a44

File tree

1 file changed

+4
-1
lines changed
  • Sources/Common/DataModel/ImplicitBoolean

1 file changed

+4
-1
lines changed

Sources/Common/DataModel/ImplicitBoolean/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ function vtkImplicitBoolean(publicAPI, model) {
1919
// Set our className
2020
model.classHierarchy.push('vtkImplicitBoolean');
2121

22+
// Capture "parentClass" api for internal use
23+
const superClass = Object.assign({}, publicAPI);
24+
2225
publicAPI.getMTime = () => {
23-
let mTime = model.superClass.getMTime();
26+
let mTime = superClass.getMTime();
2427
if (!model.functions || model.functions.length <= 0) {
2528
return mTime;
2629
}

0 commit comments

Comments
 (0)