Backbone-events mit wildcards

Gibt es eine Möglichkeit, zu hören, zu allen Veranstaltungen ein namespace. Also, wenn ich höre, dass ein Ereignis wie dieses:

app.vent.on('notification(:id)', function(type){console.lof(type)})

Wird es hören, alle Ereignisse mag dieses:

app.vent.trigger('notification:info')
app.vent.trigger('notification:error')
app.vent.trigger('notification:success')
Schreibe einen Kommentar