Skip to content

Commit 02c9b30

Browse files
blackartgrasshoppergn
authored andcommitted
DVF-2668 global legend improvement
1 parent a7ae648 commit 02c9b30

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/vector/Layer.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,6 @@ acgraph.vector.Layer.prototype.serialize = function() {
12251225
//----------------------------------------------------------------------------------------------------------------------
12261226
/** @inheritDoc */
12271227
acgraph.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() {
12431242
acgraph.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;

0 commit comments

Comments
 (0)