Skip to content

Commit

Permalink
Add stanza.getAttribute() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mwild1 committed Feb 4, 2010
1 parent 13a4253 commit 709f029
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xmpp.js
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 709f029

Please sign in to comment.