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 @@ -195,11 +195,6 @@ $.widget.bridge = function( name, object ) {
195195 args = widget_slice . call ( arguments , 1 ) ,
196196 returnValue = this ;
197197
198- // allow multiple hashes to be passed on init
199- options = ! isMethodCall && args . length ?
200- $ . widget . extend . apply ( null , [ options ] . concat ( args ) ) :
201- options ;
202-
203198 if ( isMethodCall ) {
204199 this . each ( function ( ) {
205200 var methodValue ,
@@ -224,6 +219,12 @@ $.widget.bridge = function( name, object ) {
224219 }
225220 } ) ;
226221 } else {
222+
223+ // Allow multiple hashes to be passed on init
224+ if ( args . length ) {
225+ options = $ . widget . extend . apply ( null , [ options ] . concat ( args ) ) ;
226+ }
227+
227228 this . each ( function ( ) {
228229 var instance = $ . data ( this , fullName ) ;
229230 if ( instance ) {
You can’t perform that action at this time.
0 commit comments