mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Effects: Allow 'null' for options - Fixes #8670 - null reference when using effects - Closes gh-783
This commit is contained in:
parent
fd9b355a8e
commit
8b76684a92
@ -31,6 +31,17 @@ test( "Immediate Return Conditions", function() {
|
|||||||
equal( ++count, 3, "Both Functions worked properly" );
|
equal( ++count, 3, "Both Functions worked properly" );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
asyncTest( "Parse of null for options", function() {
|
||||||
|
var hidden = $( "div.hidden" ),
|
||||||
|
count = 0;
|
||||||
|
expect( 1 );
|
||||||
|
hidden.show( "blind", null, 1, function() {
|
||||||
|
equal( ++count, 1, "null for options still works" );
|
||||||
|
start();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/* TODO: Disabled - Can't figure out why this is failing in IE 6/7
|
/* TODO: Disabled - Can't figure out why this is failing in IE 6/7
|
||||||
test( "createWrapper and removeWrapper retain focused elements (#7595)", function() {
|
test( "createWrapper and removeWrapper retain focused elements (#7595)", function() {
|
||||||
expect( 2 );
|
expect( 2 );
|
||||||
|
4
ui/jquery.ui.effect.js
vendored
4
ui/jquery.ui.effect.js
vendored
@ -1054,8 +1054,8 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
|||||||
// convert to an object
|
// convert to an object
|
||||||
effect = { effect: effect };
|
effect = { effect: effect };
|
||||||
|
|
||||||
// catch (effect)
|
// catch (effect, null, ...)
|
||||||
if ( options === undefined ) {
|
if ( options == null ) {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user