mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 14:08:13 -05:00
Forgot to check for the non-existance of a complete function.
This commit is contained in:
2
fx/fx.js
2
fx/fx.js
@@ -263,7 +263,7 @@ jQuery.fx = function( elem, options, prop ){
|
||||
jQuery.setAuto( z.el, prop );
|
||||
|
||||
// If a callback was provided, execute it
|
||||
if( z.o.complete.constructor == Function ) {
|
||||
if( z.o.complete && z.o.complete.constructor == Function ) {
|
||||
|
||||
// Yes, this is a weird place for this, but it needs to be executed
|
||||
// only once per cluster of effects.
|
||||
|
||||
Reference in New Issue
Block a user