add aliases 'Ox.' etc. for 'Ox.UI.' etc.

This commit is contained in:
rolux 2011-11-30 15:27:08 +01:00
parent 3597b8c60c
commit b14604bc14

View file

@ -245,10 +245,11 @@ Ox.load.UI = function(options, callback) {
Ox.UI.ready = (function() {
var callbacks = [];
$(function() {
Ox.UI.$body = $('body');
Ox.UI.$document = $(document);
Ox.UI.$head = $('head');
Ox.UI.$window = $(window);
// 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);
callbacks.forEach(function(callback) {
callback();
});