Commit df30390d df30390d79c09a6cc6b890afd09b0fd5e055dffc by Nicolas Perriault

Merge pull request #1073 from cvan/patch-1

fix code sample in `__utils__.findAll` documentation
2 parents 091bbc34 330f8a7a
......@@ -109,7 +109,7 @@ Retrieves all DOM elements matching a given :ref:`selector expression <selectors
casper.start('http://foo.bar/', function() {
links = this.evaluate(function() {
var elements = __utils__.findAll('a.menu');
return Array.prototype.forEach.call(elements, function(e) {
return elements.map(function(e) {
return e.getAttribute('href');
});
});
......