@Override @SuppressIsSafeHtmlCastCheck public void uninitElement() { isReady = false; // Issue 1897: initElement uses a timeout, so its possible to call this // method after calling initElement, but before the event system is in // place. if (initializing) { initializing = false; return; } // Unhook all custom event handlers when the element is detached. unhookEvents(); // Recreate the placeholder element and store the iframe's contents and the // enabled status in it. This is necessary because some browsers will wipe // the iframe's contents when it is removed from the DOM. @IsSafeHtml String html = getHTML(); // TODO: mXSS boolean enabled = isEnabled(); beforeInitPlaceholder = DOM.createDiv(); beforeInitPlaceholder.setInnerHTML(html); setEnabled(enabled); }
@Override public void uninitElement() { isReady = false; // Issue 1897: initElement uses a timeout, so its possible to call this // method after calling initElement, but before the event system is in // place. if (initializing) { initializing = false; return; } // Unhook all custom event handlers when the element is detached. unhookEvents(); // Recreate the placeholder element and store the iframe's contents and the // enabled status in it. This is necessary because some browsers will wipe // the iframe's contents when it is removed from the DOM. String html = getHTML(); boolean enabled = isEnabled(); beforeInitPlaceholder = DOM.createDiv(); beforeInitPlaceholder.setInnerHTML(html); setEnabled(enabled); }
@Override public void uninitElement() { isReady = false; // Issue 1897: initElement uses a timeout, so its possible to call this // method after calling initElement, but before the event system is in // place. if (initializing) { initializing = false; return; } // Unhook all custom event handlers when the element is detached. unhookEvents(); // Recreate the placeholder element and store the iframe's contents and the // enabled status in it. This is necessary because some browsers will wipe // the iframe's contents when it is removed from the DOM. String html = getHTML(); boolean enabled = isEnabled(); beforeInitPlaceholder = DOM.createDiv(); beforeInitPlaceholder.setInnerHTML(html); setEnabled(enabled); }