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 ...@@ -109,7 +109,7 @@ Retrieves all DOM elements matching a given :ref:`selector expression <selectors
109 casper.start('http://foo.bar/', function() { 109 casper.start('http://foo.bar/', function() {
110 links = this.evaluate(function() { 110 links = this.evaluate(function() {
111 var elements = __utils__.findAll('a.menu'); 111 var elements = __utils__.findAll('a.menu');
112 return Array.prototype.forEach.call(elements, function(e) { 112 return elements.map(function(e) {
113 return e.getAttribute('href'); 113 return e.getAttribute('href');
114 }); 114 });
115 }); 115 });
......