fix(PropertyBindingParser): properly parse event bindings as actions

Fixes #981

Closes #987
This commit is contained in:
Pawel Kozlowski
2015-03-17 19:37:41 +01:00
parent 6cdbe4a264
commit a35cc27781
2 changed files with 10 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export class PropertyBindingParser extends CompileStep {
MapWrapper.set(newAttrs, bindParts[5], attrValue);
} else if (isPresent(bindParts[6])) {
// match: (event)
current.addEventBinding(bindParts[6], this._parseBinding(attrValue, desc));
current.addEventBinding(bindParts[6], this._parseAction(attrValue, desc));
}
} else {
var ast = this._parseInterpolation(attrValue, desc);