From 36049447cdc4742e30dc643f126fe98b4d0f3368 Mon Sep 17 00:00:00 2001 From: David Cormier Date: Fri, 14 Feb 2014 09:32:30 -0500 Subject: [PATCH] Fix jshint errors --- js/glowingbear.js | 2 +- js/websockets.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index 6b8cab0..3830a4a 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -317,7 +317,7 @@ function($rootScope, // password was OK. Store that result and check for it // in the failure handler. $rootScope.waseverconnected = true; - } + }; var onclose = function () { diff --git a/js/websockets.js b/js/websockets.js index 160583c..3e49781 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -122,9 +122,9 @@ function($rootScope, $q) { if ('onmessage' in properties) { ws.onmessage = function(event) { - properties['onmessage'](event); + properties.onmessage(event); onmessage(event); - } + }; } else { ws.onmessage = onmessage; }