mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-05 15:10:59 +00:00
Fixed animationComplete return value bug.
This commit is contained in:
parent
09f5719865
commit
df21c701b5
2 changed files with 6 additions and 0 deletions
|
|
@ -225,6 +225,7 @@
|
|||
else{
|
||||
// defer execution for consistency between webkit/non webkit
|
||||
setTimeout(callback, 0);
|
||||
return $(this);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -146,4 +146,9 @@
|
|||
start();
|
||||
}, 900);
|
||||
});
|
||||
|
||||
test( "animationComplete return value", function(){
|
||||
$.fn.animationComplete = animationCompleteFn;
|
||||
equals($("#foo").animationComplete(function(){})[0], $("#foo")[0]);
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue