larrymyers/backbone-koans — Issue #1: bind('all') koan
Author: juanghurtado
Created: 2012-03-05 18:05:16+00:00
State: open

Hi there,

I'm doing your koans (great work, by the way, thanks a lot!) but I'm stuck at the `bind('all')` one:

https://github.com/larrymyers/backbone-koans/blob/master/js/koans/aboutEvents.js#L66

The solution should be `obj.trigger("custom event");`, but it doesn't work. It triggers two events instead of one, so first assertion is not valid.

I'm I doing something wrong? This is my code:

```javascript
it("Evented objects can bind 'all' as a special event name to capture all triggered events on the object.", function() {
var callback = jasmine.createSpy('-Custom Event Callback-');

obj.bind('all', callback);

obj.trigger("custom event");

expect(callback.callCount).toBe(1);
expect(callback.mostRecentCall.args[0]).toBe('custom event');
});
```