Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit cfa11e0

Browse files
committed
fix(element binder): New-style Module.bind for AttrMustache
1 parent a30c0a5 commit cfa11e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/core_dom/element_binder.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ class ElementBinder {
254254
toFactory: (Scope scope) => new TextMustache(node, ref.valueAST, scope));
255255
} else if (ref.type == AttrMustache) {
256256
if (nodesAttrsDirectives.isEmpty) {
257-
nodeModule.bind(AttrMustache, toFactory: (Injector injector) {
258-
var scope = injector.getByKey(SCOPE_KEY);
257+
nodeModule.bind(AttrMustache, inject: const[Scope], toFactory: (Scope scope) {
259258
for (var ref in nodesAttrsDirectives) {
260259
new AttrMustache(nodeAttrs, ref.value, ref.valueAST, scope);
261260
}

0 commit comments

Comments
 (0)