Skip to content

Commit

Permalink
refs #325 - updated evaluate() calls in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Dec 21, 2012
1 parent 0cef17e commit f7110de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/bbcshots.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ images = []
casper.hide = (selector) ->
@evaluate (selector) ->
document.querySelector(selector).style.display = "none"
, selector: selector
, selector

casper.start "http://www.bbc.co.uk/", ->
nbLinks = @evaluate ->
Expand Down
4 changes: 1 addition & 3 deletions samples/bbcshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ var buildPage, next;
casper.hide = function(selector) {
this.evaluate(function(selector) {
document.querySelector(selector).style.display = "none";
}, {
selector: selector
});
}, selector);
};

casper.start("http://www.bbc.co.uk/", function() {
Expand Down

0 comments on commit f7110de

Please sign in to comment.