File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 665
665
// if using the $.param format that allows for multiple values with the same name
666
666
if ( $ . isPlainObject ( s . extraData [ n ] ) && s . extraData [ n ] . hasOwnProperty ( 'name' ) && s . extraData [ n ] . hasOwnProperty ( 'value' ) ) {
667
667
extraInputs . push (
668
- $ ( '<input type="hidden" name="' + s . extraData [ n ] . name + '">' , ownerDocument ) . val ( s . extraData [ n ] . value )
669
- . appendTo ( form ) [ 0 ] ) ;
668
+ $ ( '<input type="hidden" name="' + s . extraData [ n ] . name + '">' , ownerDocument ) . val ( s . extraData [ n ] . value )
669
+ . appendTo ( form ) [ 0 ] ) ;
670
670
} else {
671
671
extraInputs . push (
672
- $ ( '<input type="hidden" name="' + n + '">' , ownerDocument ) . val ( s . extraData [ n ] )
673
- . appendTo ( form ) [ 0 ] ) ;
672
+ $ ( '<input type="hidden" name="' + n + '">' , ownerDocument ) . val ( s . extraData [ n ] )
673
+ . appendTo ( form ) [ 0 ] ) ;
674
674
}
675
675
}
676
676
}
736
736
737
737
return ;
738
738
739
- } else if ( e === SERVER_ABORT && xhr ) {
739
+ }
740
+ if ( e === SERVER_ABORT && xhr ) {
740
741
xhr . abort ( 'server abort' ) ;
741
742
deferred . reject ( xhr , 'error' , 'server abort' ) ;
742
743
1405
1406
switch ( tag ) {
1406
1407
case 'input' :
1407
1408
this . checked = this . defaultChecked ;
1408
- // fall through
1409
+ // fall through
1409
1410
1410
1411
case 'textarea' :
1411
1412
this . value = this . defaultValue ;
1453
1454
return true ;
1454
1455
1455
1456
case 'form' :
1456
- // guard against an input with the name of 'reset'
1457
- // note that IE reports the reset function as an 'object'
1457
+ // guard against an input with the name of 'reset'
1458
+ // note that IE reports the reset function as an 'object'
1458
1459
if ( typeof this . reset === 'function' || ( typeof this . reset === 'object' && ! this . reset . nodeType ) ) {
1459
1460
this . reset ( ) ;
1460
1461
}
Original file line number Diff line number Diff line change 212
212
213
213
214
214
<!-- mocha -->
215
- < script src ="https://code.jquery.com/jquery-3.2.1.min.js " integrity ="sha256-JAW99MJVpJBGcbzEuXk4Az05s/XyDdBomFqNlM3ic+I = " crossorigin ="anonymous "> </ script >
215
+ < script src ="https://code.jquery.com/jquery-3.2.1.min.js " integrity ="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4 = " crossorigin ="anonymous "> </ script >
216
216
< script src ="../src/jquery.form.js "> </ script >
217
217
< script src ="../node_modules/mocha/mocha.js "> </ script >
218
218
< script src ="../node_modules/chai/chai.js "> </ script >
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ describe('form', function() {
408
408
dataType : 'xml' ,
409
409
success : function ( responseXML , statusText ) { // post-submit callback
410
410
assert . ok ( typeof responseXML == 'object' , 'data type xml' ) ;
411
- assert . ok ( $ ( 'test' , responseXML ) . size ( ) == 3 , 'xml data query' ) ;
411
+ assert . ok ( $ ( 'test' , responseXML ) . length == 3 , 'xml data query' ) ;
412
412
// start();
413
413
}
414
414
} ;
You can’t perform that action at this time.
0 commit comments