Mercurial > eldonilo > lightstring
changeset 57:91f18fdc0e2c
Some clean up.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Wed, 01 Feb 2012 16:48:48 +0100 |
parents | 1d4b844586f6 |
children | bcb5b7c2c3d3 |
files | lightstring.js |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);