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

Mihai Varga mihai.mv13 at gmail.com
Tue Jun 23 04:24:44 PDT 2015


 loleaflet/src/layer/tile/TileLayer.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e8d5cbbb1e01b088661001be73f89526e7fb528f
Author: Mihai Varga <mihai.mv13 at gmail.com>
Date:   Tue Jun 23 14:23:35 2015 +0300

    Replaced 'dragging' with 'isDragged' because 'dragging' is already used

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 88bab85..b135334 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -798,10 +798,10 @@ L.TileLayer = L.GridLayer.extend({
 		var aPos = this._latLngToTwips(e.target.getLatLng());
 
 		if (e.type === 'drag')
-			e.target.dragging = true;
+			e.target.isDragged = true;
 
 		if (e.type === 'dragend')
-			e.target.dragging = false;
+			e.target.isDragged = false;
 
 		if ( this._startMarker == e.target )
 			this._postSelectTextEvent('start', aPos.x, aPos.y);
@@ -834,13 +834,13 @@ L.TileLayer = L.GridLayer.extend({
 	_onUpdateTextSelection: function () {
 		if (this._selections.getLayers().length !== 0) {
 			if (!this._isEmptyRectangle(this._aTextSelectionStart) &&
-					this._startMarker.dragging !== true) {
+					this._startMarker.isDragged !== true) {
 				this._startMarker.setLatLng(this._aTextSelectionStart.getSouthWest());
 				this._map.addLayer(this._startMarker);
 			}
 
 			if (!this._isEmptyRectangle(this._aTextSelectionEnd) &&
-					this._endMarker.dragging !== true) {
+					this._endMarker.isDragged !== true) {
 				this._endMarker.setLatLng(this._aTextSelectionEnd.getSouthEast());
 				this._map.addLayer(this._endMarker);
 			}


More information about the Libreoffice-commits mailing list