funkcja (tekst) {jeżeli (typeof tekst! == "przedmiot" && tekst! = null) powrotny this.empty () .append ((ten [(0)] && ten [(0)] .ownerDocument || dokument) .createTextNode (tekst)); var zmiękczać = ""; jQuery.each (tekst || this.nodeType, funkcja () {jQuery.each (this.childNodes, funkcja () {jeżeli (this.nodeType! = 8) zmiękczać += this.nodeType! = (1)? this.nodeValue: jQuery.fn.text ([to]); }); }); powrót zmiękczać; } funkcja (tekst) {jeżeli (typeof tekst! == "przedmiot" && tekst! = null) powrotny this.empty () .append ((ten [(0)] && ten [(0)] .ownerDocument || dokument) .createTextNode (tekst)); |