Commit 19a10804 authored by Mart Lubbers's avatar Mart Lubbers

Call beforeRemove on children by default

parent a3dafe05
......@@ -327,7 +327,11 @@ itasks.Component = {
me.children.splice(didx, 0, child);
},
beforeChildRemove: function(idx,child) {},
beforeRemove: function() {},
beforeRemove: function() {
this.children.forEach(function (child){
child.beforeRemove();
});
},
setAttribute: function(name,value) {
var me = this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment