add aliases (Ox., Ox.getOxElement, Ox.isOxElement)
This commit is contained in:
parent
cd52a29fda
commit
8e19b6f29b
1 changed files with 3 additions and 3 deletions
|
@ -317,7 +317,7 @@ Ox.load.UI = function(options, callback) {
|
|||
vertical: ['top', 'bottom', 'left', 'right']
|
||||
};
|
||||
//@ 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
|
||||
(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')];
|
||||
};
|
||||
/*@
|
||||
|
@ -408,7 +408,7 @@ Ox.load.UI = function(options, callback) {
|
|||
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');
|
||||
};
|
||||
//@ Ox.UI.PATH <str> Path of Ox.UI
|
||||
|
|
Loading…
Reference in a new issue