loleaflet/src/control/Control.ContextMenu.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6fdad3ba94ddbc35791b89da475d11446fea420f
Author:     Aron Budea <aron.bu...@collabora.com>
AuthorDate: Wed Feb 26 16:51:48 2020 +0100
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Wed Feb 26 17:39:16 2020 +0100

    Replace 'includes' with '$.inArray' for IE11
    
    Regression from b36d56bf5b022bf4b41d062a82326b5ea57b8dbf.
    
    Change-Id: I270afb92366fa8992c08a79bd1c561117a18bb9c
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89560
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Aron Budea <aron.bu...@collabora.com>

diff --git a/loleaflet/src/control/Control.ContextMenu.js 
b/loleaflet/src/control/Control.ContextMenu.js
index b5db30d02..0f09fa9ee 100644
--- a/loleaflet/src/control/Control.ContextMenu.js
+++ b/loleaflet/src/control/Control.ContextMenu.js
@@ -109,7 +109,7 @@ L.Control.ContextMenu = L.Control.extend({
                var contextMenu = this._createContextMenuStructure(obj);
                var spellingContextMenu = false;
                for (var menuItem in contextMenu) {
-                       if (menuItem.includes('.uno:SpellCheckIgnore')) {
+                       if ($.inArray('.uno:SpellCheckIgnore', menuItem)) {
                                spellingContextMenu = true;
                                break;
                        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to