Skip to content

Commit 4e61b95

Browse files
author
Paul Bakaus
committed
core: prevent calling plugins if the node doesn't exist in DOM anymore (has been removed by the user) (fixes #4087)
1 parent 8ccbc0a commit 4e61b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/ui.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $.ui = {
2727
},
2828
call: function(instance, name, args) {
2929
var set = instance.plugins[name];
30-
if(!set) { return; }
30+
if(!set || !instance.element[0].parentNode) { return; }
3131

3232
for (var i = 0; i < set.length; i++) {
3333
if (instance.options[set[i][0]]) {

0 commit comments

Comments
 (0)