use __DEV__ instead of DEBUG
This commit is contained in:
parent
083f9fc081
commit
3c9c4e52e7
|
@ -62,8 +62,7 @@ function UdpSocket(options, onmessage) {
|
||||||
inherits(UdpSocket, EventEmitter)
|
inherits(UdpSocket, EventEmitter)
|
||||||
|
|
||||||
UdpSocket.prototype._debug = function() {
|
UdpSocket.prototype._debug = function() {
|
||||||
// for now
|
if (__DEV__) {
|
||||||
if (typeof DEBUG !== 'undefined' && DEBUG) {
|
|
||||||
var args = [].slice.call(arguments)
|
var args = [].slice.call(arguments)
|
||||||
args.unshift('socket-' + this._id)
|
args.unshift('socket-' + this._id)
|
||||||
console.log.apply(console, args)
|
console.log.apply(console, args)
|
||||||
|
|
Loading…
Reference in New Issue