10 Commits

Author SHA1 Message Date
Brad Dunbar
397d11e340 equals is deprecated; use equal instead
http://docs.jquery.com/QUnit/equal#actualexpectedmessage
2012-01-17 23:52:12 -05:00
Brad Dunbar
9df6387d9e trigger all for each event 2012-01-13 18:58:11 -05:00
Jeremy Ashkenas
5aa4fda9ba Fixes #640 -- adds the ability to bind/unbind/trigger (on/off/trigger) multiple, space separated events, after jQuery. 2012-01-13 16:01:59 -05:00
Jeremy Ashkenas
51335bf10f Fixes #641 -- on and off are now the preferred names for bind and unbind, following jQuery. 2012-01-13 15:27:57 -05:00
Brad Dunbar
47e1f7e6c8 (un)bind does not alter callback list during trigger 2012-01-13 08:24:47 -05:00
Brad Dunbar
de2430554e implement callbacks as linked list 2011-10-31 07:15:03 -04:00
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