Skip to content

Commit 40d0505

Browse files
PatrickJSmhevery
authored andcommitted
refactor(ProtoView): use const for DOM.addClass
`DOM.addClass(insertionElement, 'ng-binding');` -> `DOM.addClass(insertionElement, NG_BINDING_CLASS);` Closes angular#676
1 parent cf51057 commit 40d0505

File tree

1 file changed

+1
-1
lines changed
  • modules/angular2/src/core/compiler

1 file changed

+1
-1
lines changed

modules/angular2/src/core/compiler/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ export class ProtoView {
535535
shadowDomStrategy: ShadowDomStrategy
536536
): ProtoView {
537537

538-
DOM.addClass(insertionElement, 'ng-binding');
538+
DOM.addClass(insertionElement, NG_BINDING_CLASS);
539539
var rootProtoView = new ProtoView(insertionElement, protoChangeDetector, shadowDomStrategy);
540540
rootProtoView.instantiateInPlace = true;
541541
var binder = rootProtoView.bindElement(

0 commit comments

Comments
 (0)