Bug Tracker

Opened 15 years ago

Closed 13 years ago

Last modified 11 years ago

#2925 closed enhancement (invalid)

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:


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}); }});

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

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


Note: See TracTickets for help on using tickets.