# HG changeset patch # User Matthew Wild # Date 1265225146 0 # Node ID 2d83fe899f5f5604c6b18a0219070dadb478bd4d # Parent b88bcbbe08e101af5ee0708ec4fc0f9e9fddf69b Add stanza.getText() to retrieve all text nodes joined as a string diff -r b88bcbbe08e1 -r 2d83fe899f5f xmpp.js --- a/xmpp.js Wed Feb 03 19:23:45 2010 +0000 +++ b/xmpp.js Wed Feb 03 19:25:46 2010 +0000 @@ -307,6 +307,13 @@ } return null; }, + + getText: function () { + var buf = []; + for(var i=0;i