loleaflet: connect() was actually renamed to initialize().

This commit is contained in:
Jan Holesovsky 2016-01-18 17:02:27 +01:00
parent c8ea8bcacd
commit ed3be25e01

View file

@ -31,7 +31,7 @@ L.Socket = L.Class.extend({
sendMessage: function (msg, coords) {
var socketState = this.socket.readyState;
if (socketState === 2 || socketState === 3) {
this.connect(this._map);
this.initialize(this._map);
this._msgQueue.push({msg: msg, coords: coords});
}