JSFiddle - React, Tailwind, and code Playground
by johnhunter
HTML
<script src="//code.jquery.com/jquery-1.7.2.js"></script>
<script src="//cloud.github.com/downloads/SteveSanderson/knockout/jquery.tmpl.js"></script>
<script src="//knockoutjs.com/js/knockout-2.1.0.js"></script>
<div data-bind="template: 'test-template'"></div>
<script type="text/html" id="test-template">
<p>template rendered</p>
{{if testval }}
<p>testval true</p>
{{/if}}
</script>
<script>
/*
Note: jquery template binding style causes IE7 memory leak only when observable is altered.
*/
var vm = {
testval: ko.observable(false)
};
setTimeout(function(){
// the following triggers the leak
vm.testval(true);
}, 1000);
ko.applyBindings(vm);
</script>