From 3c9c4e52e7e9f1c964b2595b78ca20cedec002cb Mon Sep 17 00:00:00 2001 From: Mark Vayngrib Date: Sun, 22 Nov 2015 12:46:19 +0000 Subject: [PATCH] use __DEV__ instead of DEBUG --- UdpSocket.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UdpSocket.js b/UdpSocket.js index 4ad6fdf..d16489d 100644 --- a/UdpSocket.js +++ b/UdpSocket.js @@ -62,8 +62,7 @@ function UdpSocket(options, onmessage) { inherits(UdpSocket, EventEmitter) UdpSocket.prototype._debug = function() { - // for now - if (typeof DEBUG !== 'undefined' && DEBUG) { + if (__DEV__) { var args = [].slice.call(arguments) args.unshift('socket-' + this._id) console.log.apply(console, args)