Skip to content

Commit

Permalink
feat(AstParser): Made the AST parser private to the scope
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Mar 19, 2014
1 parent e25a774 commit 3a3cfbd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/core/filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class NgFilter {
@NgInjectableService()
class FilterMap extends AnnotationMap<NgFilter> {
Injector _injector;
FilterMap(Injector injector, MetadataExtractor extractMetadata) :
this._injector = injector,
super(injector, extractMetadata);
FilterMap(Injector injector, MetadataExtractor extractMetadata)
: this._injector = injector,
super(injector, extractMetadata);

call(String name) {
var filter = new NgFilter(name: name);
Expand Down
1 change: 0 additions & 1 deletion lib/core/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class NgCoreModule extends Module {
value(ScopeStats, new ScopeStats());
value(GetterCache, new GetterCache({}));
value(Object, {}); // RootScope context
type(AstParser);
type(NgZone);

type(Parser, implementedBy: DynamicParser);
Expand Down
4 changes: 2 additions & 2 deletions lib/core_dom/element_binder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class ElementBinder {
nodeModule.factory(NgTextMustacheDirective, (Injector injector) {
return new NgTextMustacheDirective(
node, ref.value, injector.get(Interpolate), injector.get(Scope),
injector.get(AstParser), injector.get(FilterMap));
injector.get(FilterMap));
});
} else if (ref.type == NgAttrMustacheDirective) {
if (nodesAttrsDirectives == null) {
Expand All @@ -146,7 +146,7 @@ class ElementBinder {
var interpolate = injector.get(Interpolate);
for (var ref in nodesAttrsDirectives) {
new NgAttrMustacheDirective(nodeAttrs, ref.value, interpolate,
scope, injector.get(AstParser), injector.get(FilterMap));
scope, injector.get(FilterMap));
}
});
}
Expand Down

0 comments on commit 3a3cfbd

Please sign in to comment.