From fe64572ec9b1921a147d2b0748f1b6241315363d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 22 Feb 2019 13:58:28 +0100 Subject: [PATCH] Fix window name gets changed not intentionally to template name after et2 load --- api/js/etemplate/etemplate2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/etemplate2.js b/api/js/etemplate/etemplate2.js index 77ce6e652f..d6809e231d 100644 --- a/api/js/etemplate/etemplate2.js +++ b/api/js/etemplate/etemplate2.js @@ -211,7 +211,7 @@ etemplate2.prototype.clear = function() jQuery(this.DOMContainer).empty(); // Remove self from the index - for(name in this.templates) + for(var name in this.templates) { if(typeof etemplate2._byTemplate[name] == "undefined") continue; for(var i = 0; i < etemplate2._byTemplate[name].length; i++)