aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-02-10 09:14:59 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-02-10 09:14:59 +0000
commit4e61b952f32d80ba33a277da5a8681f5208caf18 (patch)
treeaad56c11e94477c9d5ec18287066553b993e25b8
parent8ccbc0ac55c53b86b6041a25a03901c8a145a50d (diff)
downloadjquery-ui-4e61b952f32d80ba33a277da5a8681f5208caf18.tar.gz
jquery-ui-4e61b952f32d80ba33a277da5a8681f5208caf18.zip
core: prevent calling plugins if the node doesn't exist in DOM anymore (has been removed by the user) (fixes #4087)
-rw-r--r--ui/ui.core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 318f871a6..beee725bc 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -27,7 +27,7 @@ $.ui = {
},
call: function(instance, name, args) {
var set = instance.plugins[name];
- if(!set) { return; }
+ if(!set || !instance.element[0].parentNode) { return; }
for (var i = 0; i < set.length; i++) {
if (instance.options[set[i][0]]) {