Commit c422c2c5 c422c2c541d891ef2125f043a92a75ca30920622 by Nicolas Perriault

not so fast, cowboy.

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