File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1225,7 +1225,6 @@ acgraph.vector.Layer.prototype.serialize = function() {
12251225//----------------------------------------------------------------------------------------------------------------------
12261226/** @inheritDoc */
12271227acgraph . vector . Layer . prototype . disposeInternal = function ( ) {
1228-
12291228 if ( this . children ) {
12301229 goog . disposeAll . apply ( null , this . children ) ;
12311230 }
@@ -1243,11 +1242,11 @@ acgraph.vector.Layer.prototype.disposeInternal = function() {
12431242acgraph . vector . Layer . prototype . finalizeDisposing = function ( ) {
12441243 // TODO(Anton Saukh): as far as I see this finalization of children has been already invoked in notifyPrevParent()
12451244 // upon the real disposing. If so - we dont need to add finalizeDisposing into Element.
1246- // if (this.children) {
1247- // goog.array.forEach(this.children, function(child) {
1248- // child.finalizeDisposing();
1249- // });
1250- // }
1245+ if ( this . children ) {
1246+ goog . array . forEach ( this . children , function ( child ) {
1247+ child . finalizeDisposing ( ) ;
1248+ } ) ;
1249+ }
12511250
12521251 // we use these arrays for rendering, so we need to remove them here
12531252 delete this . domChildren ;
You can’t perform that action at this time.
0 commit comments