Remove element from DOM the correct way.

semantics-font
Frode Petterson 2015-04-21 13:56:24 +02:00
parent 51a77c02ab
commit 8433f654af
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
actionHandlers.resize = function (iframe, data, respond) { actionHandlers.resize = function (iframe, data, respond) {
// Resize iframe so all content is visible. // Resize iframe so all content is visible.
iframe.style.height = data.height + 'px'; iframe.style.height = data.height + 'px';
iframe.nextSibling.remove(); iframe.parentNode.removeChild(iframe.nextSibling);
}; };
/** /**