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) {