add aliases (Ox., Ox.getOxElement, Ox.isOxElement)

This commit is contained in:
rolux 2014-08-21 17:11:33 +02:00
parent cd52a29fda
commit 8e19b6f29b

View file

@ -317,7 +317,7 @@ Ox.load.UI = function(options, callback) {
vertical: ['top', 'bottom', 'left', 'right'] vertical: ['top', 'bottom', 'left', 'right']
}; };
//@ Ox.UI.elements <o> reference to all UI element instances //@ Ox.UI.elements <o> reference to all UI element instances
Ox.UI.elements = {}; Ox.$elements = Ox.UI.elements = {};
/*@ /*@
Ox.UI.getImageData <f> Returns image properties Ox.UI.getImageData <f> Returns image properties
(url) -> <s> Image Name (url) -> <s> Image Name
@ -374,7 +374,7 @@ Ox.load.UI = function(options, callback) {
} }
}); });
// ... // ...
Ox.UI.getOxElement = function(element) { Ox.getOxElement = Ox.UI.getOxElement = function(element) {
return Ox.$elements[Ox.$(element).data('oxid')]; return Ox.$elements[Ox.$(element).data('oxid')];
}; };
/*@ /*@
@ -408,7 +408,7 @@ Ox.load.UI = function(options, callback) {
return Ox.isObject(object) && 'oxid' in object; return Ox.isObject(object) && 'oxid' in object;
}; };
// ... // ...
Ox.UI.isOxElement = function(element) { Ox.isOxElement = Ox.UI.isOxElement = function(element) {
return !!Ox.$(element).attr('data-oxid'); return !!Ox.$(element).attr('data-oxid');
}; };
//@ Ox.UI.PATH <str> Path of Ox.UI //@ Ox.UI.PATH <str> Path of Ox.UI