From 59ffb97ea9de018d4b630fff7c5af25f28f24698 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Wed, 26 Jul 2017 17:23:43 -0700 Subject: [PATCH] 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. --- static/js/portico/landing-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js index a9ea75f751..020b296f14 100644 --- a/static/js/portico/landing-page.js +++ b/static/js/portico/landing-page.js @@ -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); } });