Skip to content
Permalink
Browse files

Forgot to check for the non-existance of a complete function.

  • Loading branch information
jeresig committed Jul 4, 2006
1 parent cef11df commit 8a97cd67ef48517e58b2eff9a644e4ced9f95053
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

0 comments on commit 8a97cd6

Please sign in to comment.
You can’t perform that action at this time.