Mantis - tweak
Viewing Issue Advanced Details
1220 Any minor always 05-17-05 19:54 05-17-05 21:55
bert  
 
normal  
feedback  
open  
none    
none  
0001220: Tiles: When going from normal to paused, the script is executed once
What happens is that the script is recompiled, then the ticker fires, and then it is paused, because of the #syncScript call in Scriptor>>pause. However, we need that call to wait until the script is compiled. What might help is in #runActiveScripts, to actually execute the synced scripts not only after the tickers, but before, too.

Notes
(0001502)
andreas   
05-17-05 21:55   
Any appearance of syncScript is the sign of a hack. This issue really should not be fixed by adding another hack on top of two existing ones (syncScript itself and its use here) but rather by storing the information that this script ought to be constructed as a paused script and handle it right where the compilation is done. For example:

CScriptorTile>>compile
  receiver compileScriptNode: self asParseNode.
  receiver addScriptor: self.
  self paused ifTrue:[self pauseScript: selector].