emberjs/ember.js — pull request #404 by dgeb (2012-01-14 20:25:29+00:00)
Title: Add return value to TargetActionSupport.triggerAction()

It can be helpful to controls that extend `TargetActionSupport` to know whether `triggerAction()` succeeds. An event handler may respond differently depending upon whether an action and target are available.

Here's an example taken from the `Ember.Link` proposal (#381):

```
click: function(evt) {
if (this.triggerAction()) {
evt.preventDefault();
return Ember.get(this, 'propagateEvents');
}
}
```

In this example, if an action is not triggered, default `click` behaviour won't be prevented. This simple change would allow an `Ember.Link` to work as a standard or action link.