#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: |
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}); }});
Note: See
TracTickets for help on using
tickets.
This isn't for jQuery core, it could be submitted to UI.
http://dev.jqueryui.com