forked from Archives/Athou_commafeed
fix error when emitting event without payload
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user