1
0
Fork 0
forked from 0x2620/oxjs

fix bug with keyboard events

This commit is contained in:
rolux 2011-04-30 00:56:46 +02:00
commit 0211be527c
4 changed files with 15 additions and 14 deletions

View file

@ -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]
}