Widget: Removed comment about storing instances in jQuery.data twice since we now only do it once.

This commit is contained in:
Scott González 2011-01-23 17:38:33 -05:00
parent 244eebe74d
commit 8d1713dd8e

View File

@ -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, {},