From 01692f31f38db984d3d7abc77853bc82524fb990 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 17 Sep 2013 11:05:01 -0700 Subject: [PATCH] Set focus state in right place --- clientapp/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapp/app.js b/clientapp/app.js index 6c83892..b4ce006 100644 --- a/clientapp/app.js +++ b/clientapp/app.js @@ -26,10 +26,10 @@ module.exports = { app.hasFocus = false; $(window).blur(function () { - me.hasFocus = false; + app.hasFocus = false; }); $(window).focus(function () { - me.hasFocus = true; + app.hasFocus = true; }); window.onbeforeunload = function () { if (client.sessionStarted) {