Skip to content

Commit df6aced

Browse files
refactor(RenderCompiler): minor changes to PropertyBindingParser
Closes angular#2583
1 parent ffd1ac4 commit df6aced

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/angular2/src/render/dom/compiler/property_binding_parser.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var BIND_NAME_REGEXP = RegExpWrapper.create(
2323
* Parses the property bindings on a single element.
2424
*/
2525
export class PropertyBindingParser implements CompileStep {
26-
constructor(public _parser: Parser) {}
26+
constructor(private _parser: Parser) {}
2727

2828
process(parent: CompileElement, current: CompileElement, control: CompileControl) {
2929
var attrs = current.attrs();
@@ -82,8 +82,7 @@ export class PropertyBindingParser implements CompileStep {
8282

8383
_bindPropertyAst(name, ast, current: CompileElement, newAttrs) {
8484
var binder = current.bindElement();
85-
var camelCaseName = dashCaseToCamelCase(name);
86-
binder.bindProperty(camelCaseName, ast);
85+
binder.bindProperty(dashCaseToCamelCase(name), ast);
8786
MapWrapper.set(newAttrs, name, ast.source);
8887
}
8988

0 commit comments

Comments
 (0)