[Libreoffice-commits] online.git: loleaflet/src
Aron Budea (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 26 21:13:02 UTC 2020
loleaflet/src/control/Control.ContextMenu.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ecafb84258397d5ac34a02fd71cd7f6bd93b7e85
Author: Aron Budea <aron.budea at collabora.com>
AuthorDate: Wed Feb 26 21:13:15 2020 +0100
Commit: Aron Budea <aron.budea at 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 <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Aron Budea <aron.budea at 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;
}
More information about the Libreoffice-commits
mailing list