Commit ec021e4a authored by Evgeny Bovykin's avatar Evgeny Bovykin

Fix stupid error

parent 6b801e69
......@@ -4,17 +4,17 @@ var logger = {
var shouldLog = true
logger.log = function(){
if(log){
if(shouldLog){
console.log.apply(console, Array.prototype.slice.call(arguments));
}
};
logger.setLog = function(){
log = true;
shouldLog = true;
};
logger.unsetLog = function(){
log = false;
shouldLog = false;
};
if (typeof define === 'function' && define.amd) {
......
{
"name": "ed3-logger",
"version": "1.0.1",
"version": "1.0.2",
"description": "The most basic logger you could ever imagine",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment