Skip to content

Commit fc0effd

Browse files
committed
Fix type in cleanup
1 parent 56e6aca commit fc0effd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRoot.geobase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,10 +3464,10 @@ JSROOT.define(['three', 'csg'], (THREE, ThreeBSP) => {
34643464
geo.cleanupShape = function(shape) {
34653465
if (!shape) return;
34663466

3467-
if (shape.geom && (typeof shape.geom.dispose == 'funciton'))
3467+
if (shape.geom && (typeof shape.geom.dispose == 'function'))
34683468
shape.geom.dispose();
34693469

3470-
if (shape.geomZ && (typeof shape.geomZ.dispose == 'funciton'))
3470+
if (shape.geomZ && (typeof shape.geomZ.dispose == 'function'))
34713471
shape.geomZ.dispose();
34723472

34733473
delete shape.geom;

0 commit comments

Comments
 (0)