From 83b7143753531326b7c0bd788cc66f3b8bf92a40 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 15 Jun 2019 14:30:23 -0700 Subject: [PATCH] Fix 'this' in the delayed spinner timeout. --- frontends/etiquette_flask/static/js/spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/spinner.js b/frontends/etiquette_flask/static/js/spinner.js index 871f0b5..e90ff54 100644 --- a/frontends/etiquette_flask/static/js/spinner.js +++ b/frontends/etiquette_flask/static/js/spinner.js @@ -10,7 +10,7 @@ function Spinner(element) if (delay) { - this.delayed_showing_timeout = setTimeout(this.show, delay); + this.delayed_showing_timeout = setTimeout(function(thisthis){thisthis.show()}, delay, this); } else {