sagemath/sagecell — Issue #256: Initialization using the .init function twice seems to cause problems
Author: jasongrout
Created: 2012-02-28 06:51:39+00:00
State: open

Instead of having to call the .init function twice to have two different cells, we might instead implement a queue system for creating cells, or just hook into the makeSagecell function to just queue up cells, which are then created after the init finishes. Here's an example of how to create a nice queue: http://devblog.muziboo.com/2010/04/29/a-simple-javascript-queue-for-asynchronous-loading/

So the new design would be:

sagecell.init()
sagecell.makeSagecell(...) // queues until init is finished, then makes cell
sagecell.makeSagecell(...)// queues until init is finished, then makes cell