[Proto-Scripty] Re: Extending a class

2009-12-17 Thread david
Hi Greg, While reading my answer, I missed sometyhing :(( You could not use unser*ialize with the $F utility ? $F is an alias for Form.Element.Methods.getValue and it return a string, not an extend object like the $() function. So output of $F is a string, and if you want to use the unserialize

[Proto-Scripty] Re: Extending a class

2009-11-17 Thread david
Hi greg, try this: Object.extend(Form.Methods,{ unserialize: function(element, source) { if (!(element = $(element))) throw new Error('DOMElement is required'); source = Object.isString(source) ? source.toQueryParams() : source; element.getElements().each(function(element) {