Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Uncaught TypeError: Cannot read property 'split' of undefined  #120

@serge852

Description

@serge852

Guess my situation must be sort of uncommon because this issue should have affected everyone but I can't find it reported here.

I kept getting Uncaught TypeError: Cannot read property 'split' of undefined in

getHash: function($link) {
return $link.attr('href').split('#')[1];
},

until changed it to

getHash: function($link) {
return ($link.attr('href'))? $link.attr('href').split('#')[1] : '';
},

My copy of plugin is 2.2 but this function didn't change in the latest code so maybe the error persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions