4 Commits

Author SHA1 Message Date
Keith Cirkel
6ef6f759b6 Add a third "context" argument to Backbone.Event.Bind which, when passed, will bind the callback to the provided context.
Example:

	Backbone.Event.Bind('event', this.event, this);

Before this commit the way to do this was as follows:

	Backbone.Event.Bind('event', _.bind(this.event, this));
2011-07-25 22:47:48 +01:00
Jeremy Ashkenas
37ddad508d Issue #309, more sophisticated event handling, for unbinding events in the midst of them firing. 2011-04-18 16:39:26 -04:00
Jeremy Ashkenas
b085fa0099 Events#trigger ... making it safe to unbind your own event within a trigger() call. 2010-12-02 09:59:26 -05:00
Jeremy Ashkenas
e7ce57cc1d Adding the beginnings of a speed suite to the Test page. 2010-10-14 14:46:53 -04:00