Skip to content

Commit

Permalink
Merge pull request remix-run#533 from bigblind/master
Browse files Browse the repository at this point in the history
Make router work in strict mode.
  • Loading branch information
mjackson committed Dec 1, 2014
2 parents 50fa306 + bded12a commit 61fe033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/utils/createRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function createRouter(options) {
* Router.*Location objects (e.g. Router.HashLocation or Router.HistoryLocation).
*/
run: function (callback) {
function dispatchHandler(error, transition) {
var dispatchHandler = function(error, transition) {
pendingTransition = null;

if (error) {
Expand Down Expand Up @@ -383,7 +383,7 @@ function createRouter(options) {
);

// Listen for changes to the location.
function changeListener(change) {
var changeListener = function(change) {
router.dispatch(change.path, change.type, dispatchHandler);
}

Expand Down

0 comments on commit 61fe033

Please sign in to comment.