loleaflet: initializationComplete renamed to initializationcomplete.
This is for consistency with other events there. Add documentation too.
This commit is contained in:
parent
5c01f032a0
commit
65b492404c
2 changed files with 11 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue