From 835d1dd586cd07110ccf3081278d7532541d06dd Mon Sep 17 00:00:00 2001 From: Amir Aharoni Date: Mon, 16 Nov 2020 10:41:09 +0200 Subject: [PATCH] Update jquery.ime from upstream Return an empty array if there are no previous IMEs in preferences. Addresses bug T262865. Updating to https://github.com/wikimedia/jquery.ime/commit/77bd142ad4bb809d01e979c01d9e33e18ef75533 Bug: T262865 Change-Id: Ifce6707914be0033239bc88ce0dc869ba8626e2c --- lib/jquery.ime/jquery.ime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js index be743ffc..f04a32a0 100644 --- a/lib/jquery.ime/jquery.ime.js +++ b/lib/jquery.ime/jquery.ime.js @@ -1,4 +1,4 @@ -/*! jquery.ime - v0.2.0+20201104 +/*! jquery.ime - v0.2.0+20201116 * https://github.com/wikimedia/jquery.ime * Copyright (c) 2020 Santhosh Thottingal; License: (GPL-2.0-or-later OR MIT) */ ( function ( $ ) { @@ -1577,7 +1577,7 @@ }, getPreviousInputMethods: function () { - return this.registry.previousInputMethods; + return this.registry.previousInputMethods || []; }, // Set the given IM as the last used for the language