diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index d9a44222..f69d74ca 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -284,10 +284,10 @@ Ox.load.UI = function(options, callback) { var callbacks = []; 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); + Ox.body = Ox.$body = Ox.UI.$body = $('body'); + Ox.document = Ox.$document = Ox.UI.$document = $(document); + Ox.head = Ox.$head = Ox.UI.$head = $('head'); + Ox.window = Ox.$window = Ox.UI.$window = $(window); // fixme: is this the right place to do this? $.browser.mozilla && Ox.$document.on('dragstart', function() { return false; @@ -374,8 +374,8 @@ Ox.load.UI = function(options, callback) { } }); // ... - Ox.getOxElement = Ox.UI.getOxElement = function(element) { - return Ox.$elements[Ox.$(element).data('oxid')]; + Ox.getElement = Ox.getOxElement = Ox.UI.getOxElement = function(element) { + return Ox.elements[$(element).data('oxid')]; }; /*@ Ox.UI.hideLoadingScreen hide loading screen @@ -409,7 +409,7 @@ Ox.load.UI = function(options, callback) { }; // ... Ox.isOxElement = Ox.UI.isOxElement = function(element) { - return !!Ox.$(element).attr('data-oxid'); + return !!$(element).data('oxid'); }; //@ Ox.UI.PATH Path of Ox.UI Ox.UI.PATH = Ox.PATH + 'Ox.UI/';