305 if((!name || child.name == name) && (!xmlns || child.attr.xmlns == xmlns)) |
305 if((!name || child.name == name) && (!xmlns || child.attr.xmlns == xmlns)) |
306 return child; |
306 return child; |
307 } |
307 } |
308 return null; |
308 return null; |
309 }, |
309 }, |
|
310 |
|
311 getText: function () { |
|
312 var buf = []; |
|
313 for(var i=0;i<this.children.length;i++) |
|
314 if(typeof(this.children[i]) == "string") |
|
315 buf.push(this.children[i]); |
|
316 return buf.join(""); |
310 } |
317 } |
311 } |
318 } |
312 |
319 |
313 xmpp.stanza = function (name, attr) |
320 xmpp.stanza = function (name, attr) |
314 { |
321 { |