From 0ed901ffb6889ddfe4cb98e35b8b69a24b0b79a8 Mon Sep 17 00:00:00 2001 From: Athou Date: Mon, 29 Jul 2013 10:43:57 +0200 Subject: [PATCH] fix error when emitting event without payload --- src/main/webapp/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 009aeea4..2dfbb639 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -19,7 +19,7 @@ module.run(['$rootScope', function($rootScope) { }); $rootScope.$on('emitReload', function(event, args) { // args.all - $rootScope.$broadcast('reload', args); + $rootScope.$broadcast('reload', args || {}); }); $rootScope.$on('emitFeedSearch', function(event, args) { $rootScope.$broadcast('feedSearch');