Fix bug preventing etemplates in iframes from being unloaded

This commit is contained in:
nathangray 2017-10-05 11:17:42 -06:00
parent ff4de75fb3
commit a09ab65973

View File

@ -215,7 +215,7 @@ var fw_browser = (function(){ "use strict"; return Class.extend(
{ {
// Clear all etemplates on this tab, regardless of application, by using DOM nodes // Clear all etemplates on this tab, regardless of application, by using DOM nodes
var content = this.iframe.contentWindow; var content = this.iframe.contentWindow;
jQuery('.et2_container',this.iframe.contentWindow).each(function() { jQuery('.et2_container',this.iframe.contentDocument).each(function() {
var et = content.etemplate2.getById(this.id); var et = content.etemplate2.getById(this.id);
if(et !== null) if(et !== null)
{ {