From 1376e49ea0916dbf39072307f823835b0eeb64c3 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 25 Feb 2015 16:30:30 +0100 Subject: [PATCH] fix(Injector): fix dependencies in static injectors Closes #784 --- modules/benchmarks/src/naive_infinite_scroll/index.js | 2 +- modules/benchmarks/src/tree/tree_benchmark.js | 2 +- modules/examples/src/hello_world/index_static.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/benchmarks/src/naive_infinite_scroll/index.js b/modules/benchmarks/src/naive_infinite_scroll/index.js index 7c140ad349..06dd5080ee 100644 --- a/modules/benchmarks/src/naive_infinite_scroll/index.js +++ b/modules/benchmarks/src/naive_infinite_scroll/index.js @@ -234,7 +234,7 @@ export function setupReflectorForAngular() { reflector.registerType(LifeCycle, { "factory": (exHandler, cd) => new LifeCycle(exHandler, cd), - "parameters": [[ExceptionHandler, ChangeDetector]], + "parameters": [[ExceptionHandler], [ChangeDetector]], "annotations": [] }); diff --git a/modules/benchmarks/src/tree/tree_benchmark.js b/modules/benchmarks/src/tree/tree_benchmark.js index 348882ea29..a66d4b47ba 100644 --- a/modules/benchmarks/src/tree/tree_benchmark.js +++ b/modules/benchmarks/src/tree/tree_benchmark.js @@ -125,7 +125,7 @@ function setupReflector() { reflector.registerType(LifeCycle, { "factory": (exHandler, cd) => new LifeCycle(exHandler, cd), - "parameters": [[ExceptionHandler, ChangeDetector]], + "parameters": [[ExceptionHandler], [ChangeDetector]], "annotations": [] }); diff --git a/modules/examples/src/hello_world/index_static.js b/modules/examples/src/hello_world/index_static.js index b4403cc6b1..ce3b594186 100644 --- a/modules/examples/src/hello_world/index_static.js +++ b/modules/examples/src/hello_world/index_static.js @@ -103,7 +103,7 @@ function setup() { reflector.registerType(LifeCycle, { "factory": (exHandler, cd) => new LifeCycle(exHandler, cd), - "parameters": [[ExceptionHandler, ChangeDetector]], + "parameters": [[ExceptionHandler], [ChangeDetector]], "annotations": [] });