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 ) {
190
190
args = widget_slice . call ( arguments , 1 ) ,
191
191
returnValue = this ;
192
192
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
-
198
193
if ( isMethodCall ) {
199
194
this . each ( function ( ) {
200
195
var methodValue ,
@@ -219,6 +214,12 @@ $.widget.bridge = function( name, object ) {
219
214
}
220
215
} ) ;
221
216
} 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
+
222
223
this . each ( function ( ) {
223
224
var instance = $ . data ( this , fullName ) ;
224
225
if ( instance ) {
You can’t perform that action at this time.
0 commit comments