Commit c422c2c5 c422c2c541d891ef2125f043a92a75ca30920622 by Nicolas Perriault

not so fast, cowboy.

1 parent 92f5aebf
...@@ -149,7 +149,7 @@ Casper.prototype = { ...@@ -149,7 +149,7 @@ Casper.prototype = {
149 */ 149 */
150 capture: function(targetFile, clipRect) { 150 capture: function(targetFile, clipRect) {
151 var previousClipRect; 151 var previousClipRect;
152 targetFile = require('fs').absolute(targetFile); 152 targetFile = fs.absolute(targetFile);
153 if (clipRect) { 153 if (clipRect) {
154 if (!utils.isType(clipRect, "object")) { 154 if (!utils.isType(clipRect, "object")) {
155 throw new Error("clipRect must be an Object instance."); 155 throw new Error("clipRect must be an Object instance.");
......