metafizzy/outlayer — pull request #21 by TeaSeaLancs (2014-08-13 11:58:05+00:00)
Title: Signed-off-by: Matt Harker <thundercloud@theflux.co.uk>

It seems that Outlayer maintains an internal list of instances created, referenced by the element's outlayerGUID, but those references aren't removed when the outlayer instance is destroyed.

Because of this, and the outlayer's track of the element that an instance was created on, these elements are never able to be garbage collected, which, over time in single page apps, will massively inflate the heap size of the page.

This pull request contains a small fix to clear the outlayer instance from the instances object on destruction.