From c436ae04de80f8d232b5456f605331ecfaba4f49 Mon Sep 17 00:00:00 2001
From: Corey Frang <gnarf@gnarf.net>
Date: Sat, 23 Jun 2012 16:50:57 -0500
Subject: Completes #11799: Maybe .progress() was cooler than I thought.

Generate a .progress() for each step of an animation, once all properties are changed. Closes gh-835.
---
 src/effects.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/effects.js')

diff --git a/src/effects.js b/src/effects.js
index 7c43dc178..f1bbed763 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -91,6 +91,8 @@ function Animation( elem, properties, options ) {
 				animation.tweens[ index ].run( percent );
 			}
 
+			deferred.notifyWith( elem, [ animation, percent, remaining ]);
+
 			if ( percent < 1 && length ) {
 				return remaining;
 			} else {
@@ -159,7 +161,8 @@ function Animation( elem, properties, options ) {
 	);
 
 	// attach callbacks from options
-	return animation.done( animation.opts.done, animation.opts.complete )
+	return animation.progress( animation.opts.progress )
+		.done( animation.opts.done, animation.opts.complete )
 		.fail( animation.opts.fail )
 		.always( animation.opts.always );
 }
-- 
cgit v1.2.3