Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Transitions: Style fixes powered by esformatter
Browse files Browse the repository at this point in the history
Closes gh-8086
  • Loading branch information
arschmitz committed Jul 3, 2016
1 parent 479e737 commit d12e51d
Show file tree
Hide file tree
Showing 15 changed files with 630 additions and 630 deletions.
34 changes: 17 additions & 17 deletions js/transitions/concurrent.js
Expand Up @@ -24,25 +24,25 @@
// Browser globals
factory( jQuery );
}
})( function( $ ) {
} )( function( $ ) {

$.mobile.ConcurrentTransition = function() {
this.init.apply(this, arguments);
};
$.mobile.ConcurrentTransition = function() {
this.init.apply( this, arguments );
};

$.extend($.mobile.ConcurrentTransition.prototype, $.mobile.Transition.prototype, {
sequential: false,
$.extend( $.mobile.ConcurrentTransition.prototype, $.mobile.Transition.prototype, {
sequential: false,

beforeDoneIn: function() {
if ( this.$from ) {
this.cleanFrom();
}
},

beforeStartOut: function( screenHeight, reverseClass, none ) {
this.doneOut( screenHeight, reverseClass, none );
beforeDoneIn: function() {
if ( this.$from ) {
this.cleanFrom();
}
});
},

beforeStartOut: function( screenHeight, reverseClass, none ) {
this.doneOut( screenHeight, reverseClass, none );
}
} );

return $.mobile.ConcurrentTransition;
});
return $.mobile.ConcurrentTransition;
} );
48 changes: 24 additions & 24 deletions js/transitions/handlers.js
Expand Up @@ -26,35 +26,35 @@
// Browser globals
factory( jQuery );
}
})( function( $ ) {
} )( function( $ ) {

// generate the handlers from the above
var defaultGetMaxScrollForTransition = function() {
return $.mobile.getScreenHeight() * 3;
};
// generate the handlers from the above
var defaultGetMaxScrollForTransition = function() {
return $.mobile.getScreenHeight() * 3;
};

//transition handler dictionary for 3rd party transitions
$.mobile.transitionHandlers = {
"sequential": $.mobile.SerialTransition,
"simultaneous": $.mobile.ConcurrentTransition
};
//transition handler dictionary for 3rd party transitions
$.mobile.transitionHandlers = {
"sequential": $.mobile.SerialTransition,
"simultaneous": $.mobile.ConcurrentTransition
};

// Make our transition handler the public default.
$.mobile.defaultTransitionHandler = $.mobile.transitionHandlers.sequential;
// Make our transition handler the public default.
$.mobile.defaultTransitionHandler = $.mobile.transitionHandlers.sequential;

$.mobile.transitionFallbacks = {};
$.mobile.transitionFallbacks = {};

// If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
$.mobile._maybeDegradeTransition = function( transition ) {
if ( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ) {
transition = $.mobile.transitionFallbacks[ transition ];
}
// If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
$.mobile._maybeDegradeTransition = function( transition ) {
if ( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ) {
transition = $.mobile.transitionFallbacks[ transition ];
}

return transition;
};
return transition;
};

// Set the getMaxScrollForTransition to default if no implementation was set by user
$.mobile.getMaxScrollForTransition = $.mobile.getMaxScrollForTransition || defaultGetMaxScrollForTransition;
// Set the getMaxScrollForTransition to default if no implementation was set by user
$.mobile.getMaxScrollForTransition = $.mobile.getMaxScrollForTransition || defaultGetMaxScrollForTransition;

return $.mobile.transitionHandlers;
});
return $.mobile.transitionHandlers;
} );
38 changes: 19 additions & 19 deletions js/transitions/serial.js
Expand Up @@ -25,27 +25,27 @@
// Browser globals
factory( jQuery );
}
})( function( $ ) {
} )( function( $ ) {

$.mobile.SerialTransition = function() {
this.init.apply(this, arguments);
};
$.mobile.SerialTransition = function() {
this.init.apply( this, arguments );
};

$.extend($.mobile.SerialTransition.prototype, $.mobile.Transition.prototype, {
sequential: true,
$.extend( $.mobile.SerialTransition.prototype, $.mobile.Transition.prototype, {
sequential: true,

beforeDoneOut: function() {
if ( this.$from ) {
this.cleanFrom();
}
},

beforeStartOut: function( screenHeight, reverseClass, none ) {
this.$from.animationComplete($.proxy(function() {
this.doneOut( screenHeight, reverseClass, none );
}, this ));
beforeDoneOut: function() {
if ( this.$from ) {
this.cleanFrom();
}
});
},

beforeStartOut: function( screenHeight, reverseClass, none ) {
this.$from.animationComplete( $.proxy( function() {
this.doneOut( screenHeight, reverseClass, none );
}, this ) );
}
} );

return $.mobile.SerialTransition;
});
return $.mobile.SerialTransition;
} );

0 comments on commit d12e51d

Please sign in to comment.