[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.
This commit is contained in:
Victor Woeltjen 2014-11-04 14:35:22 -08:00
parent 126b515782
commit f16fa32b68

View File

@ -16,7 +16,7 @@ define(
*/ */
function CustomRegistrars(app, $log) { function CustomRegistrars(app, $log) {
function CustomRegistrar(angularFunction) { function CustomRegistrar(angularFunction) {
function registerExtension(extension, index) { return function (extension, index) {
var key = extension.key, var key = extension.key,
dependencies = extension.depends || []; dependencies = extension.depends || [];
@ -41,7 +41,7 @@ define(
dependencies.concat([extension]) dependencies.concat([extension])
); );
} }
} };
} }
function registerRoute(extension, index) { function registerRoute(extension, index) {