mirror of
https://github.com/gdsmith/jquery.easing.git
synced 2025-12-22 12:13:57 +01:00
Add check for jQuery slim version
jQuery has released with jQuery 3.1.1 a 'slim' version that excludes easing. jQuery Easing Plugin tries to preserve the original jQuery 'swing' easing by default. A check was added to prevent error messages.
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
})(function($){
|
||||
|
||||
// Preserve the original jQuery "swing" easing as "jswing"
|
||||
$.easing['jswing'] = $.easing['swing'];
|
||||
if (typeof $.easing !== 'undefined') {
|
||||
$.easing['jswing'] = $.easing['swing'];
|
||||
}
|
||||
|
||||
var pow = Math.pow,
|
||||
sqrt = Math.sqrt,
|
||||
|
||||
Reference in New Issue
Block a user