emberjs/ember.js — pull request #3106 by sebastianseilund (2013-08-06 01:36:13+00:00)
Title: View event handlers inside eventManager should be wrapped in run loop

When in test-mode a run loop doesn't automatically start, which makes simple things like this fail:

```javascript
App.MyView = Ember.View.extend({
eventManager: {
click: function() {
this.toggleProperty('isThingVisible');
}
}
});
```

With:

```
Assertion failed: You have turned on testing mode, which disabled the run-loop's autorun. You will need to wrap any code with asynchronous side-effects in an Ember.run
```

I don't see any reason why a run loop shouldn't start in these cases, and when bubbling an event the current behavior is also to wrap the handler in a run loop.