File tree 1 file changed +6
-5
lines changed
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 ) {
195
195
args = widget_slice . call ( arguments , 1 ) ,
196
196
returnValue = this ;
197
197
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
-
203
198
if ( isMethodCall ) {
204
199
this . each ( function ( ) {
205
200
var methodValue ,
@@ -224,6 +219,12 @@ $.widget.bridge = function( name, object ) {
224
219
}
225
220
} ) ;
226
221
} 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
+
227
228
this . each ( function ( ) {
228
229
var instance = $ . data ( this , fullName ) ;
229
230
if ( instance ) {
You can’t perform that action at this time.
0 commit comments