1
0
Fork 0
forked from 0x2620/oxjs

update documentation

This commit is contained in:
rolux 2012-06-02 14:10:47 +02:00
commit ea08852676
2 changed files with 74 additions and 74 deletions

View file

@ -6,13 +6,13 @@ Ox.JQueryElement <f> Wrapper for jQuery
$element <o> jQuery DOM Element
@*/
Ox.JQueryElement = function($element) {
//@ id <number> Unique id
//@ id <n> Unique id
this.oxid = Ox.uid();
//@ $element <object> The jQuery-wrapped DOM element
//@ $element <o> The jQuery-wrapped DOM element
this.$element = $element.data({oxid: this.oxid});
//@ 0 <element> The DOM element (for compatibility with jQuery)
//@ 0 <h> The DOM element (for compatibility with jQuery)
this[0] = this.$element[0];
//@ length <number> 1 (for compatibility with jQuery)
//@ length <n> 1 (for compatibility with jQuery)
this.length = 1;
Ox.UI.elements[this.oxid] = this;
return this;