# HG changeset patch # User Sonny Piers # Date 1328636647 -3600 # Node ID 7500bc048dbc682720168964afda1f4c0aa31168 # Parent 50d36b093e3aec324ec28e527601fbe508acef6b Typo errors. diff --git a/plugins/dataforms.js b/plugins/dataforms.js --- a/plugins/dataforms.js +++ b/plugins/dataforms.js @@ -127,7 +127,7 @@ } var itemsList = x.getElementsByTagNameNS(Lightstring.ns['dataforms'], 'item'); - if (itemsList.length) { + if (itemsList) { var fields = parseFields(itemsList[0].getElementsByTagNameNS(Lightstring.ns['dataforms'], 'fields')); if (fields) form.items = fields; diff --git a/plugins/disco.js b/plugins/disco.js --- a/plugins/disco.js +++ b/plugins/disco.js @@ -109,9 +109,9 @@ identity.name = name; identities.push(identity); } - else if (ns === Lightstring.ns['dataforms'] && name === 'x') { + else if (ns === Lightstring.ns['dataforms'] && name === 'x') var fields = this.dataforms.parse(child); //TODO: check if that plugin is enabled. - } + else ; //TODO: emit a warning. } diff --git a/plugins/pubsub.js b/plugins/pubsub.js --- a/plugins/pubsub.js +++ b/plugins/pubsub.js @@ -71,7 +71,7 @@ }, methods: { items: function(aTo, aNode, aResult, aError) { - this.send(Lightstring.stanza.pubsub.items(aTo, aNode), function(stanza) { + this.send(Lightstring.stanzas.pubsub.items(aTo, aNode), function(stanza) { var items = []; var elms = stanza.DOM.querySelectorAll('item'); for (var i = 0; i < elms.length; i++) {