mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[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:
parent
126b515782
commit
f16fa32b68
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user