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:
Brock Whittaker 2017-07-26 17:23:43 -07:00 committed by Tim Abbott
parent 2396619ec6
commit 59ffb97ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
});