fix error when emitting event without payload

This commit is contained in:
Athou
2013-07-29 10:43:57 +02:00
parent 5fe5b97130
commit 0ed901ffb6

View File

@@ -19,7 +19,7 @@ module.run(['$rootScope', function($rootScope) {
}); });
$rootScope.$on('emitReload', function(event, args) { $rootScope.$on('emitReload', function(event, args) {
// args.all // args.all
$rootScope.$broadcast('reload', args); $rootScope.$broadcast('reload', args || {});
}); });
$rootScope.$on('emitFeedSearch', function(event, args) { $rootScope.$on('emitFeedSearch', function(event, args) {
$rootScope.$broadcast('feedSearch'); $rootScope.$broadcast('feedSearch');