in isOxElement, test data, not attr; more aliases
This commit is contained in:
parent
5f69fd35df
commit
ab6266f6fc
1 changed files with 7 additions and 7 deletions
|
@ -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 <f> 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 <str> Path of Ox.UI
|
||||
Ox.UI.PATH = Ox.PATH + 'Ox.UI/';
|
||||
|
|
Loading…
Reference in a new issue