Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Actions.js bug fix - crash when no eventListener add
  • Loading branch information
jungsoo108 committed Feb 6, 2016
commit 64a8f9ca477978e0f809c4d1711d541c49dfa6e6
2 changes: 1 addition & 1 deletion Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Actions {
dispatchEvent(type :string, router: any) {
currentStack = router._stack[router._stack.length-1];
route = router.routes[currentStack];
_eventListener[type].forEach(function(val, key){
_eventListener[type] && _eventListener[type].forEach(function(val, key){
val(route);
});
}
Expand Down