Skip to content

Instantly share code, notes, and snippets.

@dipspb
Created April 12, 2011 08:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dipspb/915190 to your computer and use it in GitHub Desktop.
Save dipspb/915190 to your computer and use it in GitHub Desktop.
How to produce reverse animation instance in SenchaTouch
function reverse(animation) {
var a = ('string' == typeof animation) ? Ext.anims[animation] : animation;
if (!a) return animation;
function BackAnimation(){}
BackAnimation.prototype = a;
var ba = new BackAnimation();
ba.config = Ext.apply({}, {reverse: true}, a.config);
return ba;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment