]> source.dussan.org Git - jquery-ui.git/commitdiff
core: prevent calling plugins if the node doesn't exist in DOM anymore (has been...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Tue, 10 Feb 2009 09:14:59 +0000 (09:14 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Tue, 10 Feb 2009 09:14:59 +0000 (09:14 +0000)
ui/ui.core.js

index 318f871a67fdcf18a1c6bd384a8d450cd80035ba..beee725bca9d5bb89a9b1b26d133a2b8d80fa50c 100644 (file)
@@ -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]]) {