Permalink
Browse files

Add stanza.getAttribute() method

  • Loading branch information...
1 parent 13a4253 commit 709f029582429e25d93cb61bb4a2fe74d784acde @mwild1 mwild1 committed Feb 4, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 xmpp.js
View
@@ -377,6 +377,10 @@ xmpp.StanzaBuilder.prototype = {
if(typeof(this.children[i]) == "string")
buf.push(this.children[i]);
return buf.join("");
+ },
+
+ getAttribute: function (name) {
+ return this.attr[name] || null;
}
}

0 comments on commit 709f029

Please sign in to comment.