From e569db1ae6e9e60a7b68a9f861e31917fd1a98ed Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 4 Jun 2015 22:53:57 +0100 Subject: js: fixed invalid scope for this Signed-off-by: Olivier Gayot --- cao-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cao-common.js b/cao-common.js index 909468f..5c40f86 100644 --- a/cao-common.js +++ b/cao-common.js @@ -45,7 +45,7 @@ var CAO = function() { ws.onerror = function(evt) { console.log(evt); - this.on_socket_error(evt); + self.on_socket_error(evt); }; }; -- cgit v1.2.3