From 05a09ae2a722ead544e18b4dfd6787f1ad63bd44 Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Sat, 16 Apr 2016 11:14:31 +0100 Subject: [PATCH] Fix browserTemplates global usage in node --- src/hoganjs-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hoganjs-utils.js b/src/hoganjs-utils.js index a4893bf..31cad57 100644 --- a/src/hoganjs-utils.js +++ b/src/hoganjs-utils.js @@ -47,7 +47,7 @@ }; HoganJsUtils.prototype._readFromCache = function(templateKey) { - return browserTemplates && browserTemplates[templateKey] || templatesCache[templateKey]; + return global.browserTemplates && global.browserTemplates[templateKey] || templatesCache[templateKey]; }; HoganJsUtils.prototype._templateKey = function(namespace, view) {