loleaflet/src/core/Socket.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 0eb0bec296a5b50f68f8b6bba6a36cc604823956 Author: Jan Holesovsky <[email protected]> Date: Thu Jan 14 23:38:18 2016 +0100 loleaflet: Really fire the event on 'this'. diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js index f4e01e7..deeb560 100644 --- a/loleaflet/src/core/Socket.js +++ b/loleaflet/src/core/Socket.js @@ -10,7 +10,7 @@ L.Socket = L.Class.extend({ try { this.socket = new WebSocket(map.options.server); } catch (e) { - this._map.fire('error', {msg: 'Socket connection error', cmd: 'socket', kind: 'failed', id: 3}); + this.fire('error', {msg: 'Socket connection error', cmd: 'socket', kind: 'failed', id: 3}); return null; } this._msgQueue = []; @@ -54,7 +54,7 @@ L.Socket = L.Class.extend({ if (this._map._docLayer) { // we are reconnecting after a lost connection msg += ' part=' + this._map.getCurrentPartNumber(); - this._map.fire('statusindicator', {statusType : 'reconnected'}); + this.fire('statusindicator', {statusType : 'reconnected'}); } if (this._map.options.timestamp) { msg += ' timestamp=' + this._map.options.timestamp; @@ -175,11 +175,11 @@ L.Socket = L.Class.extend({ }, _onSocketError: function () { - this._map.fire('error', {msg: 'Socket connection error', cmd: 'socket', kind: 'failed', id: 3}); + this.fire('error', {msg: 'Socket connection error', cmd: 'socket', kind: 'failed', id: 3}); }, _onSocketClose: function () { - this._map.fire('error', {msg: 'Socket connection closed', cmd: 'socket', kind: 'closed', id: 4}); + this.fire('error', {msg: 'Socket connection closed', cmd: 'socket', kind: 'closed', id: 4}); }, parseServerCmd: function (msg) { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
