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

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 7 19:11:48 UTC 2019


 loleaflet/src/control/Control.Menubar.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit abb79a015efa4a5485afbef090a9370c0d0f21dd
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Nov 7 19:08:15 2019 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Thu Nov 7 19:11:28 2019 +0000

    Replace 'includes' with '$.inArray' for IE11
    
    Change-Id: I91c0d392ff9e7e359beb9197a80fa61bfe229a3c

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index c9074e348..a02db71cf 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -1287,7 +1287,8 @@ L.Control.Menubar = L.Control.extend({
 				return false;
 		}
 
-		if (this._hiddenItems && this._hiddenItems.includes(menuItem.id))
+		if (this._hiddenItems &&
+		    $.inArray(menuItem.id, this._hiddenItems) !== -1)
 			return false;
 
 		return true;


More information about the Libreoffice-commits mailing list