Skip to main content

Bug Tracker

Side navigation

#2925 closed enhancement (invalid)

Opened May 23, 2008 07:26AM UTC

Closed June 29, 2010 03:11AM UTC

Last modified March 14, 2012 10:09PM UTC

UI Effects Callback

Reported by: Anotherhero Owned by: paul
Priority: major Milestone: 1.3
Component: ui Version: 1.2.5
Keywords: callback Cc:
Blocked by: Blocking:
Description

Most effects from the UI contain the following

if(o.callback) o.callback.apply(this, arguments); Callback

the given options aren't in the object o but in o.options

so adding

if(o.options.callback) o.options.callback.apply(this, arguments); Options Callback

gives the possibility to do

$(elem).effect('shake', {direction: 'up', times: 2, callback : function(){

$(elem).effect('shake', {direction: 'left', times: 2});

}});

Attachments (0)
Change History (1)

Changed June 29, 2010 03:11AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This isn't for jQuery core, it could be submitted to UI.

http://dev.jqueryui.com