Mercurial > eldonilo > lightstring
diff plugins/pubsub.js @ 75:619f3ffa125a
Lightstring.namespaces has been renamed to Lightstring.ns.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Mon, 06 Feb 2012 17:37:16 +0100 |
parents | 7cb0037bf43c |
children | 50d36b093e3a |
line wrap: on
line diff
--- a/plugins/pubsub.js +++ b/plugins/pubsub.js @@ -132,7 +132,7 @@ }, init: function() { //TODO: find a way to put that in handlers, it’s UGLY! - this.on('in-message-*-' + Lightstring.namespaces['pubsub_event'] + ':event', function(stanza) { + this.on('in-message-*-' + Lightstring.ns['pubsub_event'] + ':event', function(stanza) { var payload = stanza.firstChild.firstChild; //XXX if (payload.namespaceURI !== Lightstring.namespaces['pubsub_event']) return; //TODO: emit something.