[Libreoffice-commits] online.git: loleaflet/reference.html loleaflet/src

Jan Holesovsky kendy at collabora.com
Tue Feb 9 14:38:23 UTC 2016


 loleaflet/reference.html |    9 +++++++++
 loleaflet/src/map/Map.js |    4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

New commits:
commit 65b492404c5843a12ed503480bf7fcbdea9b524b
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Feb 9 15:36:03 2016 +0100

    loleaflet: initializationComplete renamed to initializationcomplete.
    
    This is for consistency with other events there.
    
    Add documentation too.

diff --git a/loleaflet/reference.html b/loleaflet/reference.html
index 3d9a2fa..647485d 100644
--- a/loleaflet/reference.html
+++ b/loleaflet/reference.html
@@ -2668,6 +2668,15 @@ The <code>id</code> property of ErrorEvent can have the following values:
 		<td><code>String</code></td>
 		<td>Fired when all empty tiles have been loaded (fired several times).</td>
 	</tr>
+	<tr>
+		<td><code><b>'initializationcomplete'</b></code></td>
+		<td><code>String</code></td>
+		<td>Fired when everything that is needed for operating on the
+		    document is ready: this._docLayer is defined,
+		    statusindicatorfinish was received, .uno:StyleApply was
+		    received, .uno:CharFontName was received, and
+		    updatepermission was received.</td>
+	</tr>
 </table>
 
 <h3 id="toolbarcommand-values">ToolbarCommandValues</h3>
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index a887747..79510cd 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -81,7 +81,7 @@ L.Map = L.Evented.extend({
 		// is just a bunch of images, hence the context menu is useless (tdf#94599)
 		this.on('contextmenu', function() {});
 
-		// When all these conditions are met, fire statusindicator:initializationComplete
+		// When all these conditions are met, fire statusindicator:initializationcomplete
 		this.initConditions = {
 			'docLayer': false,
 			'statusindicatorfinish': false,
@@ -513,7 +513,7 @@ L.Map = L.Evented.extend({
 				return;
 			}
 		}
-		this.fire('statusindicator', {statusType: 'initializationComplete'});
+		this.fire('statusindicator', {statusType: 'initializationcomplete'});
 		this.initComplete = true;
 	},
 


More information about the Libreoffice-commits mailing list