Skip to content
Permalink
Browse files

core: prevent calling plugins if the node doesn't exist in DOM anymor…

…e (has been removed by the user) (fixes #4087)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Feb 10, 2009
1 parent 8ccbc0a commit 4e61b952f32d80ba33a277da5a8681f5208caf18
Showing with 1 addition and 1 deletion.
  1. +1 −1 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]]) {

0 comments on commit 4e61b95

Please sign in to comment.
You can’t perform that action at this time.