tkyk/jquery-history-plugin — Issue #41: Clicking same link twice (need to re-trigger init actions)
Author: alexcroox
Created: 2011-10-21 23:05:26+00:00
State: open

I have an action inside the init which I would like to be called if the same button is pressed again

$.history.init(function(hash)
{
if(hash != "")
{
console.log('loading video');
}
},
{ unescape: ",/-" });

However in the plugin there seems to be code to prevent the code above being executed again if there is no history change (e.g the hash is the same).

I have tried removing lines like below in the plugin that seem to be the reason for this blocking but I'm not having any joy

if(current_hash != self._appState) {