Update jquery.uls and jquery.ime from upstream

jquery.uls:
* Make "ha" the primary code for Hausa (should address Bug T279269).
* Localisation updates: ms-arab, ce, fur.
* Minor whitespace fixes for eslint.
Updating to
9b879ca89b

jquery.ime:
* Minor whitespace and escaping fixes for eslint.
Updating to
1fd57c64b9

Bug: T279269
Change-Id: I46aeb0a8397ebd9dc8a5d68a9e92368d8156ae2d
This commit is contained in:
Amir Aharoni
2021-05-24 10:48:32 +03:00
committed by jenkins-bot
parent 53c076a736
commit 7c6a6b528b
77 changed files with 1294 additions and 1236 deletions

View File

@@ -1,4 +1,4 @@
/*! jquery.ime - v0.2.0+20210414
/*! jquery.ime - v0.2.0+20210524
* https://github.com/wikimedia/jquery.ime
* Copyright (c) 2021 Santhosh Thottingal; License: (GPL-2.0-or-later OR MIT) */
( function ( $ ) {
@@ -607,7 +607,10 @@
/**
* @inheritdoc SelectionWrapper
*/
ContentEditableEntry.prototype.replaceTextAtSelection = function ( precedingCharCount, newText ) {
ContentEditableEntry.prototype.replaceTextAtSelection = function (
precedingCharCount,
newText
) {
var textNode, textOffset, newOffset, newRange,
sel = window.getSelection(),
range = this.getSelectedRange();
@@ -1092,7 +1095,8 @@
this.selectIM( previousInputMethods[ 0 ] );
} else {
// Provide the default input method in this case.
firstInputmethod = $.ime.languages[ languageCode ].inputmethods[ 0 ];
firstInputmethod =
$.ime.languages[ languageCode ].inputmethods[ 0 ];
this.selectIM( firstInputmethod );
}
}
@@ -1423,7 +1427,9 @@
);
if ( imeSelector.options.helpHandler ) {
$inputMethod.append( imeSelector.options.helpHandler.call( imeSelector, inputmethod ) );
$inputMethod.append(
imeSelector.options.helpHandler.call( imeSelector, inputmethod )
);
}
$imeList.append( $inputMethod );
@@ -1600,7 +1606,8 @@
// Add to the previous languages,
if ( inputMethod !== 'system' ) {
this.registry.previousInputMethods.unshift( inputMethod );
this.registry.previousInputMethods = this.registry.previousInputMethods.slice( 0, 5 );
this.registry.previousInputMethods =
this.registry.previousInputMethods.slice( 0, 5 );
}
},