diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-15 18:31:39 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-08 00:29:36 -0400 |
commit | 0a9df3af52a66fe5e8f23622503020f0bcc6ded9 (patch) | |
tree | a70be2ab4a4322c6e1d423353b6ae0c5f5e1d1f1 /ui/core.js | |
parent | 2d03e1280a3671468aba6d48d60ba9381fe90e19 (diff) | |
download | jquery-ui-0a9df3af52a66fe5e8f23622503020f0bcc6ded9.tar.gz jquery-ui-0a9df3af52a66fe5e8f23622503020f0bcc6ded9.zip |
Core: Move plugin into its own module
Ref #9647
Diffstat (limited to 'ui/core.js')
-rw-r--r-- | ui/core.js | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/ui/core.js b/ui/core.js index 7771c74ee..beb3fcbcb 100644 --- a/ui/core.js +++ b/ui/core.js @@ -28,6 +28,7 @@ "./keycode", "./labels", "./jquery-1-7", + "./plugin", "./version" ], factory ); } else { @@ -125,34 +126,4 @@ $.extend( $.expr[ ":" ], { } } ); -// $.ui.plugin is deprecated. Use $.widget() extensions instead. -$.ui.plugin = { - add: function( module, option, set ) { - var i, - proto = $.ui[ module ].prototype; - for ( i in set ) { - proto.plugins[ i ] = proto.plugins[ i ] || []; - proto.plugins[ i ].push( [ option, set[ i ] ] ); - } - }, - call: function( instance, name, args, allowDisconnected ) { - var i, - set = instance.plugins[ name ]; - - if ( !set ) { - return; - } - - if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) { - return; - } - - for ( i = 0; i < set.length; i++ ) { - if ( instance.options[ set[ i ][ 0 ] ] ) { - set[ i ][ 1 ].apply( instance.element, args ); - } - } - } -}; - } ) ); |