Skip to content

Commit 61fe033

Browse files
committed
Merge pull request #533 from bigblind/master
Make router work in strict mode.
2 parents 50fa306 + bded12a commit 61fe033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/utils/createRouter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function createRouter(options) {
354354
* Router.*Location objects (e.g. Router.HashLocation or Router.HistoryLocation).
355355
*/
356356
run: function (callback) {
357-
function dispatchHandler(error, transition) {
357+
var dispatchHandler = function(error, transition) {
358358
pendingTransition = null;
359359

360360
if (error) {
@@ -383,7 +383,7 @@ function createRouter(options) {
383383
);
384384

385385
// Listen for changes to the location.
386-
function changeListener(change) {
386+
var changeListener = function(change) {
387387
router.dispatch(change.path, change.type, dispatchHandler);
388388
}
389389

0 commit comments

Comments
 (0)