[Seaside] Unexpected callback behavior

Lukas Renggli renggli at gmail.com
Sat Dec 8 19:08:12 UTC 2007


>         this test shows a problem that seems related to a callback.     It
> fails to show appropiate objects for some temps of the callback block
> (happen when pressing the 'three' anchor of the test).

This has nothing to do with Seaside, this is purely a Squeak based
problem. Unless you load the closure compiler Squeak has no real
closures. When using #fixCallbackTemps the code works in my image. You
have to make sure you call this on the right block at the right place.

>         stuff := #(foo bar).
>         results := OrderedCollection new.
>         1 to: 2 do:[:i|
>                 results add: [Transcript cr; nextPutAll: (stuff at:
> i);flush] fixCallbackTemps ].
>         results do:[:e| e value]

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list