Remove element from DOM the correct way.
parent
51a77c02ab
commit
8433f654af
|
@ -69,7 +69,7 @@
|
|||
actionHandlers.resize = function (iframe, data, respond) {
|
||||
// Resize iframe so all content is visible.
|
||||
iframe.style.height = data.height + 'px';
|
||||
iframe.nextSibling.remove();
|
||||
iframe.parentNode.removeChild(iframe.nextSibling);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue