vendor/assets/javascripts/angular-animate.js in angular-gem-1.3.7 vs vendor/assets/javascripts/angular-animate.js in angular-gem-1.3.8

- old
+ new

@@ -1,7 +1,7 @@ /** - * @license AngularJS v1.3.7 + * @license AngularJS v1.3.8 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; @@ -837,10 +837,11 @@ * * An animation can also be cancelled by calling the `$animate.cancel(promise)` method with the provided * promise that was returned when the animation was started. * * ```js - * var promise = $animate.addClass(element, 'super-long-animation').then(function() { + * var promise = $animate.addClass(element, 'super-long-animation'); + * promise.then(function() { * //this will still be called even if cancelled * }); * * element.on('click', function() { * //tooo lazy to wait for the animation to end