summaryrefslogtreecommitdiff
path: root/cao-common.js
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 22:53:57 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 22:57:39 +0100
commite569db1ae6e9e60a7b68a9f861e31917fd1a98ed (patch)
tree0eec34f11dca77a2fa89fa569b31237ae0c08239 /cao-common.js
parent866ddbbe2610210ab710dcd2b82904d5f86c5f0c (diff)
js: fixed invalid scope for this
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'cao-common.js')
-rw-r--r--cao-common.js2
1 files changed, 1 insertions, 1 deletions
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);
};
};