[Seaside-dev] Scriptaculous SUCounterTest>>states

Michael Lucas-Smith mlucas-smith at cincom.com
Tue Oct 2 14:26:30 UTC 2007


Hi Seaside-dev,

In SUCounterTest, the @count variable ends up being backtracked because 
#states returns ^Array with: self.
Since the anchors for ++ and -- are not updated during the updaters 
async callback, the links naturally point to the same continuation every 
time you click them. Thus, since the state of @count is backtracked, the 
counter can never go beyond 0 (but can be rendered as 1 or -1).

It looks like someone is either trying to make backtracking work with 
async callbacks (in which case, they should rerender those two links in 
the callback) or mistakenly added the #states variable thinking it was 
the right thing to do.

What's the status of this scriptaculous test?

Cheers,
Michael


More information about the seaside-dev mailing list