ifandelse/Knockout.js-External-Template-Engine — pull request #17 by joshrivers (2012-03-22 18:35:39+00:00)
Title: Clone options rather than storing reference

I experienced an issue using the template binding to dynamically select templates:

template: {foreach: computed()}

The last template computed was used for each row, rather than having each row with their own template.

This commit changes usage of options parameter in ExternalTemplateSource constructor to clone the options object rather than storing a reference to it.