Update jquery.ime from upstream and a fix in default preferences

Default preferences are kept while loading from localstorage. It may
be empty first time. Handling that case.

Change-Id: If5780006120e401a4df1171146760692b8963363
This commit is contained in:
Santhosh Thottingal
2012-10-25 17:18:42 +05:30
committed by Gerrit Code Review
parent 66b2badb5c
commit 5cbad377e0
9 changed files with 26 additions and 32 deletions

View File

@@ -16,13 +16,8 @@
'use strict';
// All the characters are very similar in appearance,
// so it's better to give them names to avoid confusion.
var cyrlPalochka, palochka, latinSmallL, latinCapitalI, ukrainianCapitalI, digitOne;
var cyrlPalochka;
palochka = 'c';
latinSmallL = 'l';
latinCapitalI = 'I';
ukrainianCapitalI = 'І';
digitOne = '1';
cyrlPalochka = {
id: 'cyrl-palochka',
@@ -33,17 +28,15 @@
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
contextLength: 0,
maxKeyLength: 2,
patterns: [
[ latinSmallL, palochka ],
[ latinCapitalI, palochka ],
[ ukrainianCapitalI, palochka ] ],
[ 'l', 'Ӏ' ],
[ 'I', 'Ӏ' ],
[ 'І', 'Ӏ' ] ],
patterns_x: [
[ digitOne, palochka ],
[ 'д', palochka ],
[ 'ш', palochka ],
[ 'Ш', palochka ] ]
[ '1', 'Ӏ' ],
[ 'д', 'Ӏ' ],
[ 'ш', 'Ӏ' ],
[ 'Ш', 'Ӏ' ] ]
};
$.ime.register( cyrlPalochka );