From 965526441820d32f58b16374090c29ba794326c9 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Tue, 11 Nov 2014 22:37:37 -0800 Subject: [PATCH] update knockout sample --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 7846bd8..7823301 100644 --- a/index.html +++ b/index.html @@ -156,6 +156,9 @@ ko.components.register('dashboard-grid', { } grid.add_widget(item); + ko.utils.domNodeDisposal.addDisposeCallback(item[0], function () { + grid.remove_widget(item); + }); }, this); };