Skip to content

Commit

Permalink
Fixed node unload in table layer children. Fixes #1033 (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Aug 11, 2017
1 parent e84a946 commit 149be7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decorators/ContainerLayerDecorator/EasyDAG/NestedLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ define([
embedded: true,
widget: this.widget
});
this.control._onUnload = () => {
ArchEditor.prototype._onUnload.apply(this.control, arguments);
this.control._onUnload = id => {
ArchEditor.prototype._onUnload.call(this.control, id);
// If it was the last node, remove it
var node = this.control._client.getNode(this.id);
if (node.getChildrenIds().length === 0) {
Expand Down

0 comments on commit 149be7c

Please sign in to comment.