[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Mon Aug 14 14:23:33 UTC 2017
loleaflet/src/map/handler/Map.WOPI.js | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 8537d4372fad988137bd3be2fa696c274008f3de
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Mon Aug 14 19:51:43 2017 +0530
Reset the flag when doc unloads
Though no harm as of now because we are calling resetAppLoaded whenever
we are emitting 'docloaded' with false status at the caller site, better
safe than sorry for future.
Change-Id: Id6d86ca2ae01a6eb32c8120df435d0535d906938
diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js
index 47a39dc3..f434c433 100644
--- a/loleaflet/src/map/handler/Map.WOPI.js
+++ b/loleaflet/src/map/handler/Map.WOPI.js
@@ -84,7 +84,10 @@ L.Map.WOPI = L.Handler.extend({
if (e.type === 'docloaded') {
// doc unloaded
if (!e.status)
+ {
+ this._appLoadedConditions[e.type] = false;
return;
+ }
this.DocumentLoadedTime = Date.now();
}
More information about the Libreoffice-commits
mailing list