Skip to content

Commit

Permalink
feat: broadcast for componentLoaded event provides more info (module …
Browse files Browse the repository at this point in the history
…name and type)
  • Loading branch information
ocombe committed Nov 2, 2014
1 parent e7cf1e8 commit d41b9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@
}
var onInvoke = function(invokeName) {
newInvoke = true;
broadcast('ocLazyLoad.componentLoaded', invokeName);
regInvokes[moduleName][type].push(invokeName);
broadcast('ocLazyLoad.componentLoaded', [moduleName, type, invokeName]);
}
if(angular.isString(invokeList) && regInvokes[moduleName][type].indexOf(invokeList) === -1) {
onInvoke(invokeList);
Expand Down

0 comments on commit d41b9f5

Please sign in to comment.