From 3c71cc7a26931aafecf71c32ff5af5005572653a Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 18 Aug 2014 19:10:25 +0200 Subject: [PATCH] fix Ox..text() --- source/Ox/js/DOM.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/DOM.js b/source/Ox/js/DOM.js index 58f37c1c..a0ef7fea 100644 --- a/source/Ox/js/DOM.js +++ b/source/Ox/js/DOM.js @@ -461,7 +461,8 @@ Ox.$ = Ox.element = function(value) { ret = Ox.isString(this.textContent) ? this.textContent : this.innerText; } else { - ret = this.empty().append(document.createTextNode(string)); + this.empty()[0].appendChild(document.createTextNode(string)); + ret = this; } return ret; },