[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Tue Aug 25 21:02:59 PDT 2015
loleaflet/src/layer/tile/GridLayer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a2037f94f1c7eb7321e0e2001f35b8e33673dd10
Author: Henry Castro <hcastro at collabora.com>
Date: Tue Aug 25 23:58:32 2015 -0400
loleaflet: prefetch tiles if socket is opened
diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js
index 9ba1301..e5e7ee9 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -680,7 +680,7 @@ L.GridLayer = L.Layer.extend({
}
if (!this._tileCache[key]) {
- if (this.options.useSocket && this._map.socket) {
+ if (this.options.useSocket && this._map.socket && this._map.socket.readyState === 1) {
var twips = this._coordsToTwips(coords);
var msg = 'tile ' +
'part=' + coords.part + ' ' +
More information about the Libreoffice-commits
mailing list