4 Commits

Author SHA1 Message Date
Philipp Kunz
1a3aa040e4 0.0.9 2015-11-28 22:48:46 +01:00
Philipp Kunz
79f97b504b small fix 2015-11-28 22:48:41 +01:00
Philipp Kunz
1d58aa38bd 0.0.8 2015-11-28 22:44:05 +01:00
Philipp Kunz
304f3801bd add smartdebug.run() function 2015-11-28 22:43:57 +01:00
3 changed files with 11 additions and 1 deletions

View File

@@ -8,6 +8,11 @@ var smartDebug = {
beautylog.log("###DEBUG:###".rainbow + ' ' + message);
}
},
run: function (functionArg) {
if (debugActive) {
functionArg();
}
},
activate: function (debugArg) {
debugActive = debugArg;
},

View File

@@ -1,6 +1,6 @@
{
"name": "smartdebug",
"version": "0.0.7",
"version": "0.0.9",
"description": "debug your JavaScript the smart way",
"main": "index.js",
"scripts": {

View File

@@ -9,6 +9,11 @@ var smartDebug = {
beautylog.log("###DEBUG:###".rainbow + ' ' + message);
}
},
run: function(functionArg) {
if (debugActive) {
functionArg();
}
},
activate: function(debugArg:boolean){
debugActive = debugArg;
},