Closed ruddog closed 10 years ago
Thanks for this. The only thing is that this will revert all easing methods for any non-plugin (i.e. jQuery default) animations. If the user has the jquery easing plugin loaded on their site, then the custom easings will work.
We should check for the existence of this before just reverting it back to linear, otherwise those users will never be able to do custom easing. (I've used it in exactly this way before).
Do you think this check is enough :
if($.easing && !$.easing.hasOwnProperty(arguments[2]))
If so I would make new pull request
@ruddog yeah I think that should do it. We can test it.
Browsers that does not support cubic_bezier throw error: Object doesn't support property or method 'easeOutBack' To solve this if easing is different from swipe or linear it will be set as linear by default on old browsers