not so fast, cowboy.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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."); | ... | ... |
-
Please register or sign in to post a comment