Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001220 [tweak] Any minor always 05-17-05 19:54 05-17-05 21:55
Reporter bert View Status public  
Assigned To
Priority normal Resolution open  
Status feedback  
Summary 0001220: Tiles: When going from normal to paused, the script is executed once
Description 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.
Additional Information
Attached Files

- Relationships

- Notes
(0001502 - 499 - 571 - 571 - 571 - 571 - 571)
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].
 

- Issue History
Date Modified Username Field Change
05-17-05 19:54 bert New Issue
05-17-05 21:55 andreas Note Added: 0001502
05-17-05 21:55 andreas Status new => feedback


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
33 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker