This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Description
We are having problems with route.js.
The error is the following: "ReferenceError: hash is not defined"
It referse to Line25 and Line35:
if ((hash = newVal.indexOf('#')) > -1){
The problem is the allocation and definition of "hash" inside the if-statement.
Is there a reason why you do it that way?
Our solution is to define and allocate "hash" outside the if-statement:
var hash = newVal.indexOf('#');
if (hash > -1){
This way it should work always.