Skip to content

Commit 16e9622

Browse files
vicbvsavkin
authored andcommitted
refactor: misc cleanup
Closes dart-archive#1395
1 parent 298f0fe commit 16e9622

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/core/module_internal.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CoreModule extends Module {
4242
bind(Interpolate);
4343
bind(RootScope);
4444
bind(Scope, toInstanceOf: RootScope);
45-
bind(ClosureMap, toFactory: () => throw "Must provide dynamic/static ClosureMap.", inject: []);
45+
bind(ClosureMap, toFactory: () => throw "Must provide dynamic/static ClosureMap.");
4646
bind(ScopeStats);
4747
bind(ScopeStatsEmitter);
4848
bind(ScopeStatsConfig);

lib/directive/module.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class DirectiveModule extends Module {
7070
bind(NgBind, toValue: null);
7171
bind(NgBindTemplate, toValue: null);
7272
bind(NgBindHtml, toValue: null);
73-
bind(dom.NodeValidator, toFactory: () => new dom.NodeValidatorBuilder.common(), inject: []);
73+
bind(dom.NodeValidator, toFactory: () => new dom.NodeValidatorBuilder.common());
7474
bind(NgClass, toValue: null);
7575
bind(NgClassOdd, toValue: null);
7676
bind(NgClassEven, toValue: null);

lib/directive/ng_bind_html.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class NgBindHtml {
1717
final dom.Element element;
1818
final dom.NodeValidator validator;
1919

20-
NgBindHtml(this.element, dom.NodeValidator this.validator);
20+
NgBindHtml(this.element, this.validator);
2121

2222
/**
2323
* Parsed expression from the `ng-bind-html` attribute. 

lib/mock/module.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AngularMockModule extends Module {
6767
bind(VmTurnZone, toFactory: () {
6868
return new VmTurnZone()
6969
..onError = (e, s, LongStackTrace ls) => dump('EXCEPTION: $e\n$s\n$ls');
70-
}, inject: []);
70+
});
7171
bind(Window, toImplementation: MockWindow);
7272
var mockPlatform = new MockWebPlatform();
7373
bind(MockWebPlatform, toValue: mockPlatform);

lib/perf/module.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ part 'dev_tools_timeline.dart';
2222

2323
class PerfModule extends Module {
2424
PerfModule() {
25-
bind(Profiler, toFactory: () => new Profiler(), inject: []);
25+
bind(Profiler, toFactory: () => new Profiler());
2626
}
2727
}

0 commit comments

Comments
 (0)