Didn't test that. The default generated Handlebars template output has this
in it:

    templates = Handlebars.templates = Handlebars.templates || {}

So I'd rather keep the code the way it is unless you feel it is critical to
test the prior case.


On Wed, May 1, 2013 at 8:05 AM, Kevin Decker <notifications@github.com>wrote:

> In src/thorax.js:
>
> > @@ -16,10 +16,13 @@ var viewNameAttributeName = 'data-view-name',
> >  //view instances
> >  var viewsIndexedByCid = {};
> >
> > +if (!Handlebars.templates) {
>
> Under the prior code what happens if Handlebars is not defined but you do
> all of the template management yourself?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/walmartlabs/thorax/pull/126/files#r4036730>
> .
>