File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -190,11 +190,6 @@ $.widget.bridge = function( name, object ) {
190190 args = widget_slice . call ( arguments , 1 ) ,
191191 returnValue = this ;
192192
193- // allow multiple hashes to be passed on init
194- options = ! isMethodCall && args . length ?
195- $ . widget . extend . apply ( null , [ options ] . concat ( args ) ) :
196- options ;
197-
198193 if ( isMethodCall ) {
199194 this . each ( function ( ) {
200195 var methodValue ,
@@ -219,6 +214,12 @@ $.widget.bridge = function( name, object ) {
219214 }
220215 } ) ;
221216 } else {
217+
218+ // Allow multiple hashes to be passed on init
219+ if ( args . length ) {
220+ options = $ . widget . extend . apply ( null , [ options ] . concat ( args ) ) ;
221+ }
222+
222223 this . each ( function ( ) {
223224 var instance = $ . data ( this , fullName ) ;
224225 if ( instance ) {
You can’t perform that action at this time.
0 commit comments