[Seaside] Missing #fixTemps in #textInputXXX family of methods
avi.bryant at gmail.com
Mon Mar 14 15:27:49 CET 2005
On Mon, 14 Mar 2005 22:22:27 +0800, Yar Hwee Boon <hboon at motionobj.com> wrote:
> Running the following:
> form: [#(1 2 )
> do: [:e | html textInputWithValue: e callback: [:v | e inspect]].
> html submitButton].
> should pop up inspectors for 1 and 2, instead of 2 and 2.
I'm amazed nobody has run into that before. Thanks. I'll release a
fixed version immediately.
> A simple fix is to add a #fixTemp call to #textInputWithValue: anObject
> callback:. Maybe its possible to refactor a little and move all the
> #fixTemps into #valueInputOfType:value:callback: ?
I don't see why not. Of course, #valueInputOfType:value:callback:
could use some serious refactoring in general: all of the code to
ensure that you get the same type back that you put in is pretty ugly.
Anyone up for it?
More information about the Seaside