Skip to content

Commit

Permalink
fix(redirectToSignal): do not use getByPath when retrieving signal
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Aug 14, 2016
1 parent 7b68fa7 commit a512ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/router.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var getByPath = require('cerebral').getByPath
var utils = require('./utils')

var addressbar
Expand Down Expand Up @@ -163,7 +162,7 @@ function Router (routesConfig, options) {
},

redirectToSignal: function redirectToSignal (signalName, payload) {
var signal = getByPath(signals, signalName)
var signal = signals[signalName]
if (signal) {
setTimeout(signal.signal.bind(null, payload))
} else {
Expand Down

1 comment on commit a512ca7

@Guria
Copy link
Collaborator

@Guria Guria commented on a512ca7 Aug 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must be a test to cover it

Please sign in to comment.