1 goog.provide('lime.animation.Delay'); 2 3 4 goog.require('lime.Sprite'); 5 goog.require('lime.animation.Animation'); 6 7 /** 8 * No-op animation. Useful for making pauses on sequence animations. 9 * @constructor 10 * @extends lime.animation.Animation 11 */ 12 lime.animation.Delay = function() { 13 lime.animation.Animation.call(this); 14 }; 15 goog.inherits(lime.animation.Delay, lime.animation.Animation); 16 17 /** 18 * @inheritDoc 19 * @see lime.animation.Animation#update 20 */ 21 lime.animation.Delay.prototype.update = goog.nullFunction; 22 23 /** 24 * @inheritDoc 25 * @see lime.animation.Animation#reverse 26 */ 27 lime.animation.Delay.prototype.reverse = function() { 28 return (new lime.animation.Delay).setDuration(this.getDuration()); 29 }; 30