From c3c38055af387d155242fc46e23baf7a33708692 Mon Sep 17 00:00:00 2001 From: bumpmann Date: Thu, 16 May 2013 20:54:39 +0300 Subject: [PATCH] Update webshell-node.js fix def wsh error event --- lib/webshell-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webshell-node.js b/lib/webshell-node.js index 844fcdf..d8a25b4 100644 --- a/lib/webshell-node.js +++ b/lib/webshell-node.js @@ -10,6 +10,7 @@ function Webshell() { this._secretKey = ''; this._csid = ''; this._domain = ''; + this.on('error', function() {}); } var callnb = 1; @@ -28,7 +29,6 @@ Webshell.prototype.init = function(options) { this._secretKey = options.secret || this._secretKey; this._csid = options.csid || this._csid; this._domain = options.domain || this._domain; - this.on('error', function() {}); return this; }