jquery-hashchange icon indicating copy to clipboard operation
jquery-hashchange copied to clipboard

Update jquery.hashchange.js

Open smithxxl opened this issue 9 years ago • 0 comments

Allow a change or reset to another previous hash so hashchange can fire or not fire when needed.

I didn't change the dist code, just the source. I'm sure there is a better way, but this was a quick fix for what I needed. I was trying to force a hashchange to run again. So my solution was to clear out the previous hash and then trigger.

$(window).hashchange("prevHash", "");
$(window).trigger("hashchange");

smithxxl avatar Dec 28 '15 19:12 smithxxl