Hi!
In "register" function get called with registerModules and didn't check the module is loaded or not.
e.g.:
angular.module("foo" , ["bar","bar2"]);
When it resolved the bar and bar2 is brodcasted , but when it resolve foo it call register function again
and broadcast bar and bar2 again.
I made a hot fix in line 680 with the following check:
if(regModules.indexOf(moduleName) !== -1) {
registerModules.pop();
continue;
}
Hi!
In "register" function get called with registerModules and didn't check the module is loaded or not.
e.g.:
angular.module("foo" , ["bar","bar2"]);
When it resolved the bar and bar2 is brodcasted , but when it resolve foo it call register function again
and broadcast bar and bar2 again.
I made a hot fix in line 680 with the following check:
if(regModules.indexOf(moduleName) !== -1) {
registerModules.pop();
continue;
}