Bug Tracker

Ticket #2925 (new enhancement)

Opened 6 months ago

UI Effects Callback

Reported by: Anotherhero Assigned to: paul
Type: enhancement Priority: major
Milestone: 1.3 Component: ui
Version: 1.2.5 Keywords: callback
Cc: Needs: Commit

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

Note: See TracTickets for help on using tickets.