Mercurial > eldonilo > lightstring
changeset 81:7500bc048dbc
Typo errors.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Tue, 07 Feb 2012 18:44:07 +0100 |
parents | 50d36b093e3a |
children | 06495f77a74c |
files | plugins/dataforms.js plugins/disco.js plugins/pubsub.js |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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. }
--- 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++) {