fix Ox..text()
This commit is contained in:
parent
b10d454d2c
commit
3c71cc7a26
1 changed files with 2 additions and 1 deletions
|
@ -461,7 +461,8 @@ Ox.$ = Ox.element = function(value) {
|
||||||
ret = Ox.isString(this.textContent)
|
ret = Ox.isString(this.textContent)
|
||||||
? this.textContent : this.innerText;
|
? this.textContent : this.innerText;
|
||||||
} else {
|
} else {
|
||||||
ret = this.empty().append(document.createTextNode(string));
|
this.empty()[0].appendChild(document.createTextNode(string));
|
||||||
|
ret = this;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue