From 335c374b7334241ed931c9a7c206232a9b7a5157 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 6 Dec 2013 20:56:11 +0100 Subject: [PATCH] add data-oxid attribute --- source/Ox.UI/js/Core/JQueryElement.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/JQueryElement.js b/source/Ox.UI/js/Core/JQueryElement.js index ac7c3477..d22c4e14 100644 --- a/source/Ox.UI/js/Core/JQueryElement.js +++ b/source/Ox.UI/js/Core/JQueryElement.js @@ -9,7 +9,9 @@ Ox.JQueryElement = function($element) { //@ id Unique id this.oxid = Ox.uid(); //@ $element 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 The DOM element (for compatibility with jQuery) this[0] = this.$element[0]; //@ length 1 (for compatibility with jQuery)