[Pkg-javascript-commits] [sockjs-client] 74/350: Fix option parsing if unused

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:03:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit 129a342581f0d0c232a05f19e759f391d1f68c1d
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Wed Jun 11 14:26:19 2014 -0400

    Fix option parsing if unused
---
 lib/sockjs.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/sockjs.js b/lib/sockjs.js
index 403e622..88ab1c4 100644
--- a/lib/sockjs.js
+++ b/lib/sockjs.js
@@ -30,6 +30,7 @@ function SockJS(url, _reserved, options) {
     var that = this;
     that._base_url = utils.amendUrl(url);
 
+    options = options || {};
     that._server = 'server' in options ? options.server : utils.random_number_string(1000);
     that._devel = 'devel' in options ? options.devel : false;
     that._debug = 'debug' in options ? options.debug : false;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list