From 40d0505782ef45772d054c45c55a31ea9453d9e6 Mon Sep 17 00:00:00 2001 From: PatrickJS Date: Tue, 17 Feb 2015 10:31:13 -0800 Subject: [PATCH] refactor(ProtoView): use const for DOM.addClass `DOM.addClass(insertionElement, 'ng-binding');` -> `DOM.addClass(insertionElement, NG_BINDING_CLASS);` Closes #676 --- modules/angular2/src/core/compiler/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/core/compiler/view.js b/modules/angular2/src/core/compiler/view.js index 5240f822d1..fc8a005624 100644 --- a/modules/angular2/src/core/compiler/view.js +++ b/modules/angular2/src/core/compiler/view.js @@ -535,7 +535,7 @@ export class ProtoView { shadowDomStrategy: ShadowDomStrategy ): ProtoView { - DOM.addClass(insertionElement, 'ng-binding'); + DOM.addClass(insertionElement, NG_BINDING_CLASS); var rootProtoView = new ProtoView(insertionElement, protoChangeDetector, shadowDomStrategy); rootProtoView.instantiateInPlace = true; var binder = rootProtoView.bindElement(