From 25d97c77603ee06f5c1a7564eb7e1a8decc3cd40 Mon Sep 17 00:00:00 2001 From: Scott González Date: Sun, 6 Sep 2009 16:19:30 +0000 Subject: Widget factory: Namespace the remove event handler. --- ui/ui.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.core.js b/ui/ui.core.js index a83618a45..1b4794485 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -309,7 +309,7 @@ $.widget = function(name, prototype) { return self._getData(key); } }) - .bind('remove', function() { + .bind('remove.' + name, function() { return self.destroy(); }); }; -- cgit v1.2.3