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

route.js "ReferenceError: hash is not defined" #93

@zwirn1981

Description

@zwirn1981

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions