Commit 0d50d4fb 0d50d4fb088ac4c2bb825828fdd912c30c0045e0 by Luke Rodgers

Prevent superfluous processing of already-processed form fields.

Since casper already handles fields with the same name (checkbox, radio)
in `getFieldValue`, we shouldn't process already-processed form fields
again in the main loop of `getFormValues`.
1 parent 27440007
......@@ -511,7 +511,7 @@
var self = this;
[].forEach.call(form.elements, function(element) {
var name = element.getAttribute('name');
if (name) {
if (name && !values[name]) {
values[name] = self.getFieldValue(name);
}
});
......