[Pkg-javascript-commits] [sockjs-client] 197/350: Add missing last argument to new-less constructor

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:21 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 75f0e2d6805117bab528f8eccc7b781f56cce0e4
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Mon Oct 20 15:18:51 2014 -0400

    Add missing last argument to new-less constructor
---
 lib/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/main.js b/lib/main.js
index d946ca1..87c3606 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -34,7 +34,7 @@ var transports;
 // follow constructor steps defined at http://dev.w3.org/html5/websockets/#the-websocket-interface
 function SockJS(url, protocols, transportsWhitelist) {
   if (!(this instanceof SockJS)) {
-    return new SockJS(url, protocols);
+    return new SockJS(url, protocols, transportsWhitelist);
   }
   if (arguments.length < 1) {
     throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");

-- 
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