update uses of focusInput()

This commit is contained in:
rolux 2011-12-18 15:14:11 +05:30
commit c1c4441b10
9 changed files with 21 additions and 17 deletions

View file

@ -664,6 +664,8 @@ Ox.sub <f> Returns a substring or sub-array
"ooba"
> Ox.sub('foobar', -5, -1)
"ooba"
> Ox.sub('foo', -1, 0)
""
@*/
Ox.sub = function(col, start, stop) {
stop = Ox.isUndefined(stop) ? col.length : stop;

View file

@ -96,7 +96,9 @@
@*/
Ox.decodeBase32 = function(str) {
return parseInt(Ox.map(str.toUpperCase(), function(char) {
var index = Ox.BASE_32_DIGITS.indexOf(Ox.BASE_32_ALIASES[char] || char);
var index = Ox.BASE_32_DIGITS.indexOf(
Ox.BASE_32_ALIASES[char] || char
);
return (index == -1 ? ' ' : index).toString(32);
}).join(''), 32);
};