[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters

WordPress Trac noreply at wordpress.org
Mon Jan 28 23:29:11 UTC 2013


#21170: JavaScript actions and filters
-----------------------------+-----------------------------
 Reporter:  koopersmith      |       Owner:  koopersmith
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  General          |     Version:  3.4
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |
-----------------------------+-----------------------------
Changes (by scribu):

 * keywords:   => 2nd-opinion


Comment:

 Is this still needed, given that Backbone is bundled into Core since 3.5?
 [http://backbonejs.org/#Events Backbone.events] seems to be good enough.

 Basic usage:

 {{{
 var events = _.clone(Backbone.events);

 events.on('some_action', some_callback);

 // later

 events.trigger('some_action', 'some_data');
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21170#comment:51>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list