diff --git a/src/ExternalTemplateSource.js b/src/ExternalTemplateSource.js index 3263d17..a40f282 100644 --- a/src/ExternalTemplateSource.js +++ b/src/ExternalTemplateSource.js @@ -45,6 +45,12 @@ ko.utils.extend(ExternalTemplateSource.prototype, { self.data("precompiled",null); self.template(tmpl); self.loaded = true; + if( ko.isWriteableObservable( self.options.loaded ) ) { + setTimeout(function(){ + self.options.loaded(true); + }, 0); + } + }); } -}); \ No newline at end of file +});