1.4 Custom transitions not working
Hey there,
Up until 1.4 I've been defining custom transitions as explained in this stack overflow post:
I upgraded to 1.4 recently and now my projects transitions have gone tits up. Being an intermediately skilled programmer at best, considering the answer I got on stack overflow this is what I've gotten so far in trying to rebuild my custom transitions:
- $.mobile.myTransition = function() {
- this.init.apply(this, arguments);
- };
- $.extend($.mobile.myTransition.prototype, $.mobile.Transition.prototype, {
- sequential: true,
- beforeDoneOut: function() {
- console.log('My transition is finally happening')
- if ( this.$from ) {
- this.cleanFrom();
- }
- },
- beforeStartOut: function( screenHeight, reverseClass, none ) {
- this.$from.animationComplete($.proxy(function() {
- this.doneOut( screenHeight, reverseClass, none );
- }, this ));
- }
- });
- $.mobile.transitionHandlers["myTransition"] = $.mobile.myTransition;
- console.log($.mobile.transitionHandlers)
Unfortunately it's not working. How would I go about building custom transitions for the new version of JQM? Any help would be really, really appreciated!!