From f16fa32b68f0a1c669b9dfc8a198f89e4a1df3fe Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 4 Nov 2014 14:35:22 -0800 Subject: [PATCH] [Framework] Fix error in custom registrars Fix error in CustomRegistrars; return a function when creating general-purpose registration code for Angular built-ins which follow the normal pattern (directives, controllers, services...) WTD-518. --- platform/framework/src/CustomRegistrars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/framework/src/CustomRegistrars.js b/platform/framework/src/CustomRegistrars.js index 6fa0a618be..6fea41a986 100644 --- a/platform/framework/src/CustomRegistrars.js +++ b/platform/framework/src/CustomRegistrars.js @@ -16,7 +16,7 @@ define( */ function CustomRegistrars(app, $log) { function CustomRegistrar(angularFunction) { - function registerExtension(extension, index) { + return function (extension, index) { var key = extension.key, dependencies = extension.depends || []; @@ -41,7 +41,7 @@ define( dependencies.concat([extension]) ); } - } + }; } function registerRoute(extension, index) {