# HG changeset patch # User Sonny Piers # Date 1328111328 -3600 # Node ID 91f18fdc0e2cdedb09d14328ed1d03902a6d97bf # Parent 1d4b844586f6a672805a63f0d058934b78fdadf4 Some clean up. diff --git a/lightstring.js b/lightstring.js --- a/lightstring.js +++ b/lightstring.js @@ -83,7 +83,7 @@ var Lightstring = { XML = this.serializer.serializeToString(aElement); } catch (e) { - alert(e); + //TODO throw error } finally { return XML; @@ -304,7 +304,7 @@ Lightstring.Connection.prototype = { if(!stanza.DOM) return; - + that.emit(stanza.DOM.tagName, stanza); if (stanza.DOM.tagName === 'iq') { @@ -405,7 +405,7 @@ Lightstring.Connection.prototype = { this.on(handler, plugin.handlers[handler]); //Methods - this[name] = {}: + this[name] = {}; for (var method in plugins.methods) this[name][method].bind(this);