Commit f7110def f7110def360152c9fb3f3328147cd249af2d9d7b by Nicolas Perriault

refs #325 - updated evaluate() calls in samples

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