Commit 0ddc1b6c 0ddc1b6c0a58f03c5e5e64100e2f18743086fcbf by hexid

Fix call to Array.map

1 parent adb1ad9f
......@@ -909,7 +909,7 @@ Casper.prototype.getElementsAttr = function getElementsAttr(selector, attribute)
"use strict";
this.checkStarted();
return this.evaluate(function _evaluate(selector, attribute) {
return Array.prototype.map.call(__utils__.findAll(selector), function(element) {
return [].map.call(__utils__.findAll(selector), function(element) {
return element.getAttribute(attribute);
});
}, selector, attribute);
......