From 4e61b952f32d80ba33a277da5a8681f5208caf18 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 10 Feb 2009 09:14:59 +0000 Subject: [PATCH] core: prevent calling plugins if the node doesn't exist in DOM anymore (has been removed by the user) (fixes #4087) --- 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 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]]) { -- 2.39.5