add data-oxid attribute
This commit is contained in:
parent
27d8a6682e
commit
335c374b73
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ Ox.JQueryElement = function($element) {
|
||||||
//@ id <n> Unique id
|
//@ id <n> Unique id
|
||||||
this.oxid = Ox.uid();
|
this.oxid = Ox.uid();
|
||||||
//@ $element <o> The jQuery-wrapped DOM element
|
//@ $element <o> The jQuery-wrapped DOM element
|
||||||
this.$element = $element.data({oxid: this.oxid});
|
this.$element = $element
|
||||||
|
.attr({'data-oxid': this.oxid})
|
||||||
|
.data({oxid: this.oxid});
|
||||||
//@ 0 <h> The DOM element (for compatibility with jQuery)
|
//@ 0 <h> The DOM element (for compatibility with jQuery)
|
||||||
this[0] = this.$element[0];
|
this[0] = this.$element[0];
|
||||||
//@ length <n> 1 (for compatibility with jQuery)
|
//@ length <n> 1 (for compatibility with jQuery)
|
||||||
|
|
Loading…
Reference in a new issue