emberjs/ember.js — pull request #1209 by leepfrog (2012-07-25 03:26:09+00:00)
Title: Allow Ember.View to set a default action for a target

- Modified ember-handlebars/lib/helpers/action (and tests) to include this behavior

Before Ember implemented the Router, the default target for an action was the View for a given template. This is no longer the case if a View has been created via the Router. Now, the Router is the default target.

What this means is that in order to target a View to handle an event, you need to specify ```{{action actionName target="concreteView"}}```. This seems a bit odd (as the responsibility of the View class is to handle events).

This change will allow the View to become the default target if it specifies a method that matches the name of it's target. If the View does not specify a matching method name, it will perform the current behavior (and set it to the controller.target).