mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
Don't trigger two events when our app changes the hash
(imported from commit c17a82b043c10927de149b105c6ceea5175b6f4f)
This commit is contained in:
@@ -83,6 +83,8 @@ function do_hashchange() {
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).trigger($.Event('hashchange.zephyr'));
|
||||
|
||||
// NB: In Firefox, window.location.hash is URI-decoded.
|
||||
// Even if the URL bar says #%41%42%43%44, the value here will
|
||||
// be #ABCD.
|
||||
@@ -111,7 +113,6 @@ function do_hashchange() {
|
||||
|
||||
function hashchanged() {
|
||||
changing_hash = true;
|
||||
$(document).trigger($.Event('hashchange.zephyr'));
|
||||
var ret = do_hashchange();
|
||||
changing_hash = false;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user