RobertWHurst/Red-Locomotive — Issue #23: Clocks eating up ids. clocks object needs to be replaced with an array
Author: RobertWHurst
Created: 2011-10-25 04:02:11+00:00
State: open
Labels: Bug, Low Priority

Currently each clock is stored in an object with a key assigned by engine.idGen(). This made sense when clocks were deleted by id but this is no longer the case now that all clocks return an object containing a clear method. The object needs to be replaced with an array, and internal referencing should use Array.indexOf() instead of wasting a unique id.