AlanDeSmet / human-resource-machine-viewer

Javascript to render Human Resource Machine programs similar to the original game.
GNU General Public License v3.0
9 stars 2 forks source link

Feature: setActiveLine should work on as yet not loaded code #8

Open AlanDeSmet opened 8 years ago

AlanDeSmet commented 8 years ago

(Based on issue #5).

If setActiveLine is called, but there is no code yet loaded, it should note the requested line. When append_code_table is called, it should check if a line was requested; if so it should re-call setActiveLine once the table is ready.

This means things Just Work in more situations.