Skip to content

Commit bded12a

Browse files
Turned functions of the form 'function x(){}' into 'var x = function(){}', so that it works in strict mode.
1 parent 2425453 commit bded12a

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
@@ -351,7 +351,7 @@ function createRouter(options) {
351351
* Router.*Location objects (e.g. Router.HashLocation or Router.HistoryLocation).
352352
*/
353353
run: function (callback) {
354-
function dispatchHandler(error, transition) {
354+
var dispatchHandler = function(error, transition) {
355355
pendingTransition = null;
356356

357357
if (error) {
@@ -380,7 +380,7 @@ function createRouter(options) {
380380
);
381381

382382
// Listen for changes to the location.
383-
function changeListener(change) {
383+
var changeListener = function(change) {
384384
router.dispatch(change.path, change.type, dispatchHandler);
385385
}
386386

0 commit comments

Comments
 (0)