Skip to main content

Search and Top Navigation

#5083 closed bug (fixed)

Opened January 21, 2010 12:54AM UTC

Closed January 21, 2010 05:36PM UTC

Last modified January 21, 2010 05:40PM UTC

class animation functions need to accept function setters

Reported by: scottgonzalez Owned by:
Priority: blocker Milestone: 1.8
Component: ui.effects.core Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

.addClass(), .removeClass(), .toggleClass() all allow passing a function as a setter in jQuery 1.4. The overrides for class animations need to be updated to match the core API.

Attachments (0)
Change History (2)

Changed January 21, 2010 05:36PM UTC by jzaefferer comment:1

resolution: → fixed
status: newclosed

Works fine, as far as I can tell. See http://jquery-ui.googlecode.com/svn/trunk/tests/visual/effects.all.html

Check Firebug console for the correct arguments, its all there. Tested in FF3.5 and IE6.

Changed January 21, 2010 05:40PM UTC by jzaefferer comment:2

To calculate the styles to animate, the normale add/remove/toggle method is called, which therefore delegates the parameter-evaluation back to jQuery. Therefore this just works.