# HG changeset patch # User Sonny Piers # Date 1328062601 -3600 # Node ID 63c1c8bc8c19bd364e2064792df39162e57a4978 # Parent 770bb8460df86226e9d160c56a1fff06962eff17 Add plugin namespaces to Lightstring.stanzas and Lightstring.Connection methodes. diff --git a/lightstring.js b/lightstring.js --- a/lightstring.js +++ b/lightstring.js @@ -395,13 +395,13 @@ Lightstring.Connection.prototype = { Lightstring.ns[ns] = plugin.namespaces[ns]; for (var stanza in plugin.stanzas) - Lightstring.stanzas[stanza] = plugin.stanzas[stanza]; + Lightstring.stanzas[name][stanza] = plugin.stanzas[stanza]; for (var handler in plugin.handlers) this.on(handler, plugin.handlers[handler]); for (var method in plugin.methods) - this.methods[method] = plugin.methods[method]; + this[name][method] = plugin.methods[method]; } }, /**