From 68d186167179d501ac02b70c6326b8d22416f835 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 Apr 2011 01:15:43 +0200 Subject: [PATCH] cleanup --- source/js/OxUI.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/source/js/OxUI.js b/source/js/OxUI.js index 73ba4427..26617a1b 100644 --- a/source/js/OxUI.js +++ b/source/js/OxUI.js @@ -45,11 +45,11 @@ Ox.UI = {}; Ox.UI.ready = function(callback) { if (!ready) { - readyCallbacks.push(callback); + readyCallbacks.push(callback); } else { callback(); } - }; + }; $(function() { Ox.UI.$body = $('body'); @@ -99,7 +99,7 @@ var sizes = { small: 20, medium: 24, - large: 28, + large: 28 }; return sizes[size]; }; @@ -176,10 +176,7 @@ var dfd = new $.Deferred(); var script = document.createElement('script'); script.onload = function() { - //setTimeout(function() { - console.log('onload', src) - dfd.resolve(); - //}, 1000) + dfd.resolve(); }; script.src = Ox.UI.PATH + src; script.type = 'text/javascript'; @@ -191,7 +188,7 @@ promises = []; // fixme: find a better way to not wait for flags data = data.filter(function(image) { - return !Ox.startsWith(image, 'svg/ox.map/') + return !Ox.startsWith(image, 'svg/ox.map/'); }); data.forEach(function(src) { if (/\.js$/(src)) {