Opened 16 years ago
Closed 16 years ago
#1212 closed bug (fixed)
easing breaks animations
Reported by: | kswedberg | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | effects | Version: | 1.1.2 |
Keywords: | fx effects easing | Cc: | [email protected]… |
Blocked by: | Blocking: |
Description
animations no longer work when an easing.js plugin is included in the head, even if it isn't being used.
Using this code:
$(document).ready(function() { $('#container').fadeTo('slow',0.5); });
Firebug returns this error: "jQuery.easing[options.easing] is not a function" (jquery-1.1.3a.js, line 5159).
Test page at http://test.learningjquery.com/easing.html
Note: See
TracTickets for help on using
tickets.
This is because both of the plugins overwrite the easing object instead of extending it :-( The default easing in jQuery is called 'swing' - which isn't available in either plugin (thus causing the errors). I assume that if the easing can't be found, 'linear' could be used (since that's used everywhere). But that seems lame.