Commit e664bdd4 e664bdd417cbf3cfb93531d2fc5d174c72323768 by Nicolas Perriault

fixed jshint

1 parent ff50af66
......@@ -32,13 +32,13 @@
/*jshint maxstatements:30, maxcomplexity:10*/
// node check
if (process && process.title === "node") {
if ('process' in this && process.title === "node") {
console.error('CasperJS cannot be executed within a nodejs environment');
process.exit(1);
}
// phantom check
if (!phantom) {
if (!('phantom' in this)) {
console.error('CasperJS needs to be executed in a PhantomJS environment http://phantomjs.org/');
}
......