summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2013-02-11 13:40:37 +0100
committerportix <none@none>2013-02-11 13:40:37 +0100
commit267f396fa11dd7348cee20fceef116f78d537174 (patch)
tree31b1ed0e396b7ac8eacc50907c330039e09ee9c7 /scripts
parentd3451b8d99cc09a3d1711be446dd16357247d0e5 (diff)
downloaddwb-267f396fa11dd7348cee20fceef116f78d537174.zip
Fixing --no-confirm commandline option in dwbem, does not delete the config
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/util.js b/scripts/lib/util.js
index f104628e..3cb950b3 100644
--- a/scripts/lib/util.js
+++ b/scripts/lib/util.js
@@ -5,7 +5,7 @@
{
value : function(f)
{
- if (f !== null && f !== undefined && f instanceof Function)
+ if (f && f instanceof Function)
{
var m = f.toString().match(/\{([\s\S]*)\}/m)[1];
m = m.replace(/^\s*\/\/.*$/mg, '');