Commit 14817efe authored by Boris Kocherov's avatar Boris Kocherov

fix notification in deleteChildren()

parent c6c96e4f
...@@ -1759,19 +1759,25 @@ ...@@ -1759,19 +1759,25 @@
} }
} }
} }
element.parentNode.removeChild(element);
for (key in g.props.add_custom_data) { for (key in g.props.add_custom_data) {
if (g.props.add_custom_data.hasOwnProperty(key)) { if (g.props.add_custom_data.hasOwnProperty(key)) {
tasks.push(g.props.add_custom_data[key].rerender()); tasks.push(g.props.add_custom_data[key].rerender);
} }
} }
for (i = 0; i < button_list.length; i = i + 1) { for (i = 0; i < button_list.length; i = i + 1) {
tasks.push(button_list[i].rerender()); tasks.push(button_list[i].rerender);
} }
tasks.push(g.rootNotifyChange());
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
return RSVP.all(tasks); return RSVP.all(tasks);
})
.push(function () {
return g.rootNotifyChange();
})
.push(function () {
// remove gadget at end otherwise
// current queue canceled.
element.parentNode.removeChild(element);
}); });
}) })
......
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