refs #325 - updated evaluate() calls in samples
Showing
2 changed files
with
2 additions
and
4 deletions
... | @@ -11,7 +11,7 @@ images = [] | ... | @@ -11,7 +11,7 @@ images = [] |
11 | casper.hide = (selector) -> | 11 | casper.hide = (selector) -> |
12 | @evaluate (selector) -> | 12 | @evaluate (selector) -> |
13 | document.querySelector(selector).style.display = "none" | 13 | document.querySelector(selector).style.display = "none" |
14 | , selector: selector | 14 | , selector |
15 | 15 | ||
16 | casper.start "http://www.bbc.co.uk/", -> | 16 | casper.start "http://www.bbc.co.uk/", -> |
17 | nbLinks = @evaluate -> | 17 | nbLinks = @evaluate -> | ... | ... |
... | @@ -14,9 +14,7 @@ var buildPage, next; | ... | @@ -14,9 +14,7 @@ var buildPage, next; |
14 | casper.hide = function(selector) { | 14 | casper.hide = function(selector) { |
15 | this.evaluate(function(selector) { | 15 | this.evaluate(function(selector) { |
16 | document.querySelector(selector).style.display = "none"; | 16 | document.querySelector(selector).style.display = "none"; |
17 | }, { | 17 | }, selector); |
18 | selector: selector | ||
19 | }); | ||
20 | }; | 18 | }; |
21 | 19 | ||
22 | casper.start("http://www.bbc.co.uk/", function() { | 20 | casper.start("http://www.bbc.co.uk/", function() { | ... | ... |
-
Please register or sign in to post a comment