Created
June 23, 2013 16:18
-
-
Save jakiestfu/5845558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = (function() { | |
var _log = console ? console.log.bind(console) : Function.prototype.valueOf(); | |
return function() { | |
if (exports.debug) { | |
var args = Array.prototype.slice.call(arguments); | |
_log.apply(null, args); | |
} | |
}; | |
})(), | |
warn = (function() { | |
var _warn = console ? console.warn.bind(console) : Function.prototype.valueOf(); | |
return function() { | |
var args = Array.prototype.slice.call(arguments); | |
_warn.apply(null, args); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment