mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
core: prevent calling plugins if the node doesn't exist in DOM anymore (has been removed by the user) (fixes #4087)
This commit is contained in:
parent
8ccbc0ac55
commit
4e61b952f3
@ -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]]) {
|
||||
|
Loading…
Reference in New Issue
Block a user