Skip to main content

Bug Tracker

Side navigation

#3626 closed bug (invalid)

Opened November 20, 2008 03:24AM UTC

Closed October 14, 2009 12:23AM UTC

Last modified September 23, 2010 12:42AM UTC

Jquery assumes that options.easing is either valid or evaluates to false. This is incorrect.

Reported by: _Nate_ Owned by: flesler
Priority: minor Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: Easing Cc:
Blocked by: Blocking:
Description

At the line:

this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);

options.easing is sometimes not undefined, 'linear', or 'swing', which results in a key error.

A fix is to put the lines

if(this.options.easing != 'swing' && this.options.easing != 'linear') this.options.easing = undefined

or something to that effect above the line mentioned above. However, there may be an underlying issue as to why this.options.easing is not undefined when not set

Attachments (0)
Change History (2)

Changed October 14, 2009 12:23AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

I'll close this ticket since it's been open for so long and not reported by anyone else. The code seems to be unchanged in 1.3.2; reopen the ticket if you can provide a test case that reproduces the issue.

Changed September 23, 2010 12:42AM UTC by snover comment:2

Ticket #7068 is a duplicate of this issue.