diff options
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r-- | ui/jquery.ui.core.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index bbe5da333..f0d9e42ec 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -276,10 +276,15 @@ $.ui.plugin = { proto.plugins[ i ].push( [ option, set[ i ] ] ); } }, - call: function( instance, name, args ) { + call: function( instance, name, args, allowDisconnected ) { var i, set = instance.plugins[ name ]; - if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) { + + if ( !set ) { + return; + } + + if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) { return; } |