projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3311954
)
the undefined object in JS is evil, use the typeof operator instead
author
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 3 Feb 2014 12:55:54 +0000
(13:55 +0100)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 3 Feb 2014 12:55:54 +0000
(13:55 +0100)
test/phantom/evaluate.js
patch
|
blob
|
history
diff --git
a/test/phantom/evaluate.js
b/test/phantom/evaluate.js
index
27a2d71
..
ccf01e4
100644
(file)
--- a/
test/phantom/evaluate.js
+++ b/
test/phantom/evaluate.js
@@
-26,7
+26,7
@@
page.viewportSize = {
// 0: silent, 1: some infos, 2: display console.log() output
var debug = 2;
-if (system.env['DEBUG'] != 'undefined' && parseInt(system.env['DEBUG']) != NaN) {
+if (typeof system.env['DEBUG'] != 'undefined' && parseInt(system.env['DEBUG']) != NaN) {
debug = system.env['DEBUG'];
if (debug > 0) console.log("reset debug level to: " + debug);
}