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

Marco Cecchetti marco.cecchetti at collabora.com
Sat Feb 6 17:24:16 UTC 2016


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

New commits:
commit 686a53128757c8a9f419c01ac4927a08bfac6bbe
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Sat Feb 6 18:22:05 2016 +0100

    loleaflet - L.Cursor.imagePath can be a relative path
    
    Change-Id: Ib4e2c88f580ebc6322427d6f950231b603c58186

diff --git a/loleaflet/reference.html b/loleaflet/reference.html
index 6982cae..3d9a2fa 100644
--- a/loleaflet/reference.html
+++ b/loleaflet/reference.html
@@ -1530,7 +1530,7 @@ unexpected behaviour.</h4>
     <tr>
 		<td><code><b>cursorURL</b></code></td>
 		<td><code>String</code></td>
-		<td><code><span class="literal">'cursors'</span></code></td>
+		<td><code><span class="literal">undefined</span></code></td>
 		<td>The path (local to the server) where custom cursor files are stored.</td>
 	</tr>
 </table>
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index c001e1f..1d29bb9 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -46,8 +46,7 @@ L.Map = L.Evented.extend({
 			this.setView(L.latLng(options.center), options.zoom, {reset: true});
 		}
 
-		options.cursorURL = options.cursorURL || 'cursors';
-		L.Cursor.imagePath = L.Cursor.getCursorURL(options.cursorURL);
+		L.Cursor.imagePath = options.cursorURL || L.Cursor.getCursorURL('cursors');
 
 		if (options.webserver === undefined) {
 			var protocol = window.location.protocol === 'file:' ? 'http:' : window.location.protocol;


More information about the Libreoffice-commits mailing list