loleaflet/src/control/Control.ContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ecafb84258397d5ac34a02fd71cd7f6bd93b7e85 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Wed Feb 26 21:13:15 2020 +0100 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Wed Feb 26 22:12:44 2020 +0100 Use '$.inArray' correctly Follow-up to 6fdad3ba94ddbc35791b89da475d11446fea420f. Change-Id: I0829ab27fa6b095f5e5bfa6587b221fc0169407e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89594 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 0f09fa9ee..5b29ce168 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 ($.inArray('.uno:SpellCheckIgnore', menuItem)) { + if ($.inArray('.uno:SpellCheckIgnore', menuItem) !== -1) { spellingContextMenu = true; break; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits