From 8e19b6f29be55c88bd2b37f047b7871c6e8838fc Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 21 Aug 2014 17:11:33 +0200 Subject: [PATCH] add aliases (Ox., Ox.getOxElement, Ox.isOxElement) --- source/Ox.UI/Ox.UI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 66ecab96..80baee2c 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -317,7 +317,7 @@ Ox.load.UI = function(options, callback) { vertical: ['top', 'bottom', 'left', 'right'] }; //@ Ox.UI.elements reference to all UI element instances - Ox.UI.elements = {}; + Ox.$elements = Ox.UI.elements = {}; /*@ Ox.UI.getImageData Returns image properties (url) -> 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 Path of Ox.UI