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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 21:14:34 UTC 2018


 loleaflet/src/layer/AnnotationManager.js |   13 -------------
 1 file changed, 13 deletions(-)

New commits:
commit 0998cabbe758a9b2a43d34e1c45a506080c12406
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Nov 28 23:13:54 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Nov 28 23:13:54 2018 +0200

    Fix mis-merge (?), remove duplicated function definition
    
    Change-Id: I7652515241f156d1722d2f626ec627d166d7b4ca

diff --git a/loleaflet/src/layer/AnnotationManager.js b/loleaflet/src/layer/AnnotationManager.js
index a410598de..206f7ae71 100644
--- a/loleaflet/src/layer/AnnotationManager.js
+++ b/loleaflet/src/layer/AnnotationManager.js
@@ -472,19 +472,6 @@ L.AnnotationManager = L.Class.extend({
 
 	},
 
-	layout: function (zoom) {
-		if (zoom)
-			this.doLayout(zoom);
-		else if (!this._layoutTimer) {
-			var me = this;
-			me._layoutTimer = setTimeout(function() {
-				delete me._layoutTimer;
-				me.doLayout(zoom);
-			}, 250 /* ms */);
-		} // else - avoid excessive re-layout
-
-	},
-
 	add: function (comment) {
 		var annotation = L.annotation(this._map._docLayer._twipsToLatLng(comment.anchorPos.getTopRight()), comment,
 			comment.id === 'new' ? {noMenu: true} : {}).addTo(this._map);


More information about the Libreoffice-commits mailing list