Update jquery.ime from upstream
Upstream: https://github.com/wikimedia/jquery.ime Changes: * hi-inscript: Fixed incorrectly mapped Devanagari letter TTHA * ml-inscript: Correct the mapping of ഠ * or-inscript: fix mapping of Oriya letters TTA and TTHA * Remove unwanted escape for double quotes from rules files * Remove prefixed border-radius rules * Avoid JavaSript error while trying to get autonym * Rules loading: Use $.ajax to cache the rule js file Change-Id: I49b88551263434a93b600278d665e80737edb555
This commit is contained in:
committed by
Nikerabbit
parent
d1efe292a5
commit
bfdda7bde4
@@ -1,4 +1,4 @@
|
||||
/*! jquery.ime - v0.1.0+20140220
|
||||
/*! jquery.ime - v0.1.0+20140408
|
||||
* https://github.com/wikimedia/jquery.ime
|
||||
* Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */
|
||||
( function ( $ ) {
|
||||
@@ -320,9 +320,11 @@
|
||||
}
|
||||
|
||||
debug( 'Loading ' + inputmethodId );
|
||||
deferred = $.getScript(
|
||||
ime.options.imePath + $.ime.sources[inputmethodId].source
|
||||
).done( function () {
|
||||
deferred = $.ajax( {
|
||||
url: ime.options.imePath + $.ime.sources[inputmethodId].source,
|
||||
dataType: 'script',
|
||||
cache: true
|
||||
} ).done( function () {
|
||||
debug( inputmethodId + ' loaded' );
|
||||
} ).fail( function ( jqxhr, settings, exception ) {
|
||||
debug( 'Error in loading inputmethod ' + inputmethodId + ' Exception: ' + exception );
|
||||
@@ -1149,7 +1151,8 @@
|
||||
* @return {string} The autonym
|
||||
*/
|
||||
getAutonym: function ( languageCode ) {
|
||||
return $.ime.languages[languageCode].autonym;
|
||||
return $.ime.languages[languageCode]
|
||||
&& $.ime.languages[languageCode].autonym;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user