mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget: Removed comment about storing instances in jQuery.data twice since we now only do it once.
This commit is contained in:
parent
244eebe74d
commit
8d1713dd8e
2
ui/jquery.ui.widget.js
vendored
2
ui/jquery.ui.widget.js
vendored
@ -134,8 +134,6 @@ $.Widget.prototype = {
|
|||||||
},
|
},
|
||||||
_createWidget: function( options, element ) {
|
_createWidget: function( options, element ) {
|
||||||
element = $( element || this.defaultElement )[ 0 ];
|
element = $( element || this.defaultElement )[ 0 ];
|
||||||
// $.widget.bridge stores the plugin instance, but we do it anyway
|
|
||||||
// so that it's stored even before the _create function runs
|
|
||||||
$.data( element, this.widgetName, this );
|
$.data( element, this.widgetName, this );
|
||||||
this.element = $( element );
|
this.element = $( element );
|
||||||
this.options = $.extend( true, {},
|
this.options = $.extend( true, {},
|
||||||
|
Loading…
Reference in New Issue
Block a user