[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters
WordPress Trac
noreply at wordpress.org
Mon Jul 29 00:11:45 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 |
-----------------------------+-----------------------------
Comment (by carldanley):
Replying to [comment:67 MikeSchinkel]:
> Rather than dismissing `Backbone.Events` you might want to consider
extending them as
[https://github.com/marionettejs/backbone.wreqr/blob/master/readme.md
Backbone.Wreqr] does. It would not be too difficult to add `priority` and
`did_action()` on top of `Backbone.Events`, and it's even possible
[https://github.com/jashkenas/backbone/wiki/Extensions,-Plugins,-Resources
someone else has already written most (all?)] of the needed extensions.
Just to clarify, I'm not dismissing it rather just saying that it becomes
cumbersome. It's a bigger decision to extend Backbone because we then need
to include Backbone & underscore everywhere in core (frontend & backend)
to make this events implementation available. If that's the route people
are leaning to, that's fine with me.
You can easily extend `Backbone.Events` when it's enqueued, to provide
Backbone.Events the additional functionality this library would offer.
Curious to hear thoughts from nacin and azaozz about this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21170#comment:68>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list