Skip to content

Commit

Permalink
Add check for jQuery slim version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dheckl committed Oct 3, 2017
1 parent fdf871b commit afff17b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jquery.easing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion jquery.easing.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afff17b

Please sign in to comment.