Rename hashchange.zulip event to avoid jquery 1.8 interaction.

This commit is contained in:
Tim Abbott 2016-06-29 17:39:29 -07:00
parent d5be9e8b2d
commit cb18ef07a7
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ exports.changehash = function (newhash) {
if (changing_hash) { if (changing_hash) {
return; return;
} }
$(document).trigger($.Event('hashchange.zulip')); $(document).trigger($.Event('zuliphashchange.zulip'));
set_hash(newhash); set_hash(newhash);
favicon.reset(); favicon.reset();
}; };
@ -125,7 +125,7 @@ function do_hashchange(from_reload) {
return false; return false;
} }
$(document).trigger($.Event('hashchange.zulip')); $(document).trigger($.Event('zuliphashchange.zulip'));
// NB: In Firefox, window.location.hash is URI-decoded. // NB: In Firefox, window.location.hash is URI-decoded.
// Even if the URL bar says #%41%42%43%44, the value here will // Even if the URL bar says #%41%42%43%44, the value here will

View File

@ -631,7 +631,7 @@ exports.all = new exports.MessageList(
// doing something. Be careful, though, if you try to capture // doing something. Be careful, though, if you try to capture
// mousemove, then you will have to contend with the autoscroll // mousemove, then you will have to contend with the autoscroll
// itself generating mousemove events. // itself generating mousemove events.
$(document).on('message_selected.zulip hashchange.zulip mousewheel', function (event) { $(document).on('message_selected.zulip zuliphashchange.zulip mousewheel', function (event) {
viewport.stop_auto_scrolling(); viewport.stop_auto_scrolling();
}); });