diff plugins/roster.js @ 35:bdfbd58b4835

Fix plugins.
author Sonny Piers <sonny.piers@gmail.com>
date Sat, 28 Jan 2012 04:55:29 +0100
parents 1506992c33e2
children 48e2bd6b1885
line wrap: on
line diff
--- a/plugins/roster.js
+++ b/plugins/roster.js
@@ -38,9 +38,9 @@ Lightstring.stanza.roster = {
   }
 };
 Lightstring.getRoster = function(connection, aCallback) {
-  connection.send(this.stanza.roster.get(), function(answer){
+  connection.send(this.stanza.roster.get(), function(stanza){
     var contacts = [];
-    var elems = answer.querySelectorAll('item');
+    var elems = stanza.DOM.querySelectorAll('item');
     for(var i = 0; i<elms.length; i++) {
       var item = elms[i];
       var jid = item.getAttribute('jid');