diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 03ac7616..fea47445 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -90,7 +90,7 @@ Ox.load.UI = function(options, callback) { MozUserSelect: 'none', WebkitUserSelect: 'none' }, - loadingInterval + loadingInterval; browserSupported ? showIcon() : showWarning(); @@ -205,7 +205,7 @@ Ox.load.UI = function(options, callback) { return { hide: function() { - $screen.animate({ + $('.OxLoadingScreen').animate({ opacity: browserSupported ? 0 : 0.9 }, 1000, function() { if (browserSupported) { @@ -271,11 +271,6 @@ Ox.load.UI = function(options, callback) { function initUI() { Ox.documentReady(function() { - // FIXME: use Ox.$foo everywhere! - Ox.$body = Ox.UI.$body = $('body'); - Ox.$document = Ox.UI.$document = $(document); - Ox.$head = Ox.UI.$head = $('head'); - Ox.$window = Ox.UI.$window = $(window); // fixme: is this the right place to do this? $.browser.mozilla && Ox.$document.on('dragstart', function() { return false;