mirror of https://github.com/zulip/zulip.git
Fix: Change .on => .bind.
This changes a typo where a function was attempting to execute the scope of the parent's "this" by using `function () {}.on()`, rather than using the `Function.prototype.bind` built-in.
This commit is contained in:
parent
2396619ec6
commit
59ffb97ea9
|
@ -371,7 +371,7 @@ var events = function () {
|
|||
$(".portico-landing").removeClass("show");
|
||||
setTimeout(function () {
|
||||
window.location.href = $(this).attr("href");
|
||||
}.on(this), 500);
|
||||
}.bind(this), 500);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue