Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Forgot to check for the non-existance of a complete function.
  • Loading branch information
jeresig committed Jul 4, 2006
1 parent cef11df commit 8a97cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fx/fx.js
Expand Up @@ -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.
Expand Down

0 comments on commit 8a97cd6

Please sign in to comment.