Commit f7110def f7110def360152c9fb3f3328147cd249af2d9d7b by Nicolas Perriault

refs #325 - updated evaluate() calls in samples

1 parent 0cef17ee
...@@ -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() {
......