Mercurial > eldonilo > lightstring
diff plugins/disco.js @ 35:bdfbd58b4835
Fix plugins.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Sat, 28 Jan 2012 04:55:29 +0100 |
parents | 1506992c33e2 |
children | 6773e5bc2ca0 |
line wrap: on
line diff
--- a/plugins/disco.js +++ b/plugins/disco.js @@ -49,9 +49,9 @@ Lightstring.stanza.disco = { } }; Lightstring.discoItems = function(aConnection, aTo, aCallback) { - aConnection.send(Lightstring.stanza.disco.items(aTo), function(answer){ + aConnection.send(Lightstring.stanza.disco.items(aTo), function(stanza){ var items = []; - var elms = answer.querySelectorAll('item'); + var elms = stanza.DOM.querySelectorAll('item'); for(var i = 0; i < elms.length; i++) { var node = elms[i]; var item = { @@ -66,11 +66,11 @@ Lightstring.discoItems = function(aConne }); }; Lightstring.discoInfo = function(aConnection, aTo, aNode, aCallback) { - aConnection.send(Lightstring.stanza.disco.info(aTo, aNode), function(answer){ + aConnection.send(Lightstring.stanza.disco.info(aTo, aNode), function(stanza){ var identities = []; var features = []; - var children = answer.firstChild.children; + var children = stanza.DOM.firstChild.children; var length = children.length; for (var i = 0; i < length; i++) {