Commit 3cdde7e4 3cdde7e42905ec2955bad6e5e01e4641ad85cb3c by Nicolas Perriault

fixed isType was called with no module attached

1 parent 0f6fd644
...@@ -541,7 +541,7 @@ Casper.prototype = { ...@@ -541,7 +541,7 @@ Casper.prototype = {
541 }, {'name': name}); 541 }, {'name': name});
542 if ('error' in result) { 542 if ('error' in result) {
543 throw new Error(result.error); 543 throw new Error(result.error);
544 } else if (isType(result.value, "string")) { 544 } else if (utils.isType(result.value, "string")) {
545 return JSON.parse(result.value); 545 return JSON.parse(result.value);
546 } else { 546 } else {
547 return undefined; 547 return undefined;
......