r2061 - trunk/ui

r2061 - trunk/ui


Author: paul.bakaus
Date: Tue Feb 10 01:14:59 2009
New Revision: 2061
Modified:
trunk/ui/ui.core.js
Log:
core: prevent calling plugins if the node doesn't exist in DOM anymore (has
been removed by the user) (fixes #4087)
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js    (original)
+++ trunk/ui/ui.core.js    Tue Feb 10 01:14:59 2009
@@ -27,7 +27,7 @@
        },
        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]]) {