forked from 0x2620/oxjs
fix bug with keyboard events
This commit is contained in:
parent
5f417fa152
commit
0211be527c
4 changed files with 15 additions and 14 deletions
|
|
@ -194,7 +194,7 @@ Ox.loadFile = (function() {
|
|||
callback();
|
||||
}
|
||||
function addFileToCache() {
|
||||
type == 'svg' && Ox.print('addToCache', file)
|
||||
//type == 'svg' && Ox.print('addToCache', file)
|
||||
if (type == 'css' || type == 'js') {
|
||||
cache['file'] = true;
|
||||
callback();
|
||||
|
|
@ -650,10 +650,10 @@ Ox.makeObject = function(obj) {
|
|||
undefined
|
||||
*/
|
||||
var ret = {};
|
||||
if (obj.length == 1) {
|
||||
if (Ox.isObject(obj[0])) {
|
||||
// ({foo: 'bar'})
|
||||
ret = obj[0];
|
||||
} else if (obj.length == 2){
|
||||
} else if (obj.length) {
|
||||
// ('foo', 'bar')
|
||||
ret[obj[0]] = obj[1]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue