diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 22:53:57 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 22:57:39 +0100 |
commit | e569db1ae6e9e60a7b68a9f861e31917fd1a98ed (patch) | |
tree | 0eec34f11dca77a2fa89fa569b31237ae0c08239 | |
parent | 866ddbbe2610210ab710dcd2b82904d5f86c5f0c (diff) |
js: fixed invalid scope for this
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | cao-common.js | 2 |
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); }; }; |