It sends $broadcast once from the rootScope, but the listener ($on) gets called twice.
The listener is in a controller and it uses $rootScope.$on
instead of $scope.$on
. Has someone had this problem?
edit
rootScope:
$rootScope.$broadcast('menuActivateAction' + item.event_name_postfix, item.event_args);
other Controller:
$rootScope.$on('menuActivateActionPublish', function(event) {});
.run
phase and not in the controller - to avoid auch problems the controller should only register listener on is own scope – Vary