Commit 1adc38e5 authored by Pavel Reznikov's avatar Pavel Reznikov
Browse files

knockout sample: handle items removal

parent fb9d5a1a
......@@ -47,6 +47,9 @@ ko.components.register('dashboard-grid', {
}
grid.add_widget(item);
ko.utils.domNodeDisposal.addDisposeCallback(item[0], function () {
grid.remove_widget(item);
});
}, 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