Nicholas Schlueter wrote:
This is just my opinion, but after looking at the code I would say
that Form.element has a lot more to do with the retrieving data
(serialize, getValue) and Field has a lot more to do with the state of
the field (clear, focus, select, etc).
I thought about that also but Field has present() and clear() which both
operate on the value of the field. For consistency it would seem that
it would be best to merge the objects and then for backwards
compatibility alias all the methods under the other object. So:
var Form.Element = {
clear: function() {
....
..
.
};
var Field = Object.extend({}, Form.Element);
That way a developer could use either object (although one would
probably become more dominate). I would be interested to hear what
others think.
Eric
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs