unfortunately you would have to do this before hand:
$("#templateId").remove();
On Wed, Jun 22, 2011 at 6:24 PM, Kun Attila <kun.att...@gmail.com> wrote:
> I'm afraid this solution won't work since in my experience Knockout.js
> directly modifies the HTML of the template script element for caching
> purposes. A questionable practice indeed.
This is an example of manual template management:
https://github.com/SteveSanderson/knockout/blob/gh-pages/examples/resources/knockout.simpleGrid.js#L46
unfortunately all that does is doa document.write, which is not very cool.
https://github.com/SteveSanderson/knockout/blob/master/src/templating/jquery.tmpl/jqueryTmplTemplateEngine.js#L99
you would need to do this before replacing an added template:
$("#templateid).remove();
delete $.template["templateid"];
>
> On Jun 16, 2:20 am, rpn <rnieme...@gmail.com> wrote:
>> You can do: delete $.template["yourTemplateName"]; to clear the cached
>> version..
--
-barkmadley
sent from an internet enabled device