Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
Index: /Users/jan/webdev/moodev/mootools/trunk/Element/Element.Form.js =================================================================== --- /Users/jan/webdev/moodev/mootools/trunk/Element/Element.Form.js (revision 712) +++ /Users/jan/webdev/moodev/mootools/trunk/Element/Element.Form.js (working copy) @@ -26,10 +26,10 @@ if (option.selected) values.push($pick(option.value, option.text)); }); return (this.multiple) ? values : values[0]; - case 'input': if (!(this.checked && ['checkbox', 'radio'].contains(this.type)) && !['hidden', 'text', 'password'].contains(this.type)) break; + case 'input': if (['checkbox', 'radio'].contains(this.type) && !this.checked) return false; case 'textarea': return this.value; } - return false; + return null; }, getFormElements: function(){
From the Design Piracy series on my blog: