[Pkg-javascript-commits] [sockjs-client] 330/350: Remove dbg global

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:35 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 9fb5b00dfa122998b06e871d00905d501c77acef
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Tue Jan 5 10:47:36 2016 -0800

    Remove dbg global
    
    Fixes #282
---
 lib/main.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/main.js b/lib/main.js
index 165d9bf..8d86d94 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -23,9 +23,7 @@ var URL = require('url-parse')
 
 var debug = function() {};
 if (process.env.NODE_ENV !== 'production') {
-  // Make debug module available globally so you can enable via the console easily
-  global.dbg = require('debug');
-  debug = global.dbg('sockjs-client:main');
+  debug = require('debug')('sockjs-client:main');
 }
 
 var transports;

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