twitter/hogan.js — pull request #162 by nemtsov (2014-02-09 17:49:09+00:00)
Title: Clean partials instance before returning cache

This fixes the issue @dtb pointed out in #161.

The problem was that hogan did not clean-up the template `.instance` it created for the "specialized partial"; so on the first run it created the instance and on subsequent calls the cache returned the old instances; which contained old data from the previous run.

This PR cleans up the instances before returning the template cache to the client in `.compile()`