Fix window name gets changed not intentionally to template name after et2 load

This commit is contained in:
Hadi Nategh 2019-02-22 13:58:28 +01:00
parent 58ad1d6fe1
commit fe64572ec9

View File

@ -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++)