diff --git a/build/kint.phar b/build/kint.phar index 65463a462..7824d0771 100644 Binary files a/build/kint.phar and b/build/kint.phar differ diff --git a/resources/compiled/shared.js b/resources/compiled/shared.js index bd5ba4b4e..5869c5b21 100644 --- a/resources/compiled/shared.js +++ b/resources/compiled/shared.js @@ -1 +1 @@ -void 0===window.kintShared&&(window.kintShared=function(){"use strict";var e={dedupe:function(e,n){return[].forEach.call(document.querySelectorAll(e),function(e){n||(n=e),e!==n&&e.parentNode.removeChild(e)}),n},runOnce:function(e){"complete"===document.readyState?e():window.addEventListener("load",e)}};return window.addEventListener("click",function(e){if(e.target.classList.contains("kint-ide-link")){var n=new XMLHttpRequest;n.open("GET",e.target.href),n.send(null),e.preventDefault()}}),e}()); +void 0===window.kintShared&&(window.kintShared=function(){"use strict";var e={dedupe:function(e,n){return[].forEach.call(document.querySelectorAll(e),function(e){n&&n.ownerDocument.contains(n)||(n=e),e!==n&&e.parentNode.removeChild(e)}),n},runOnce:function(e){"complete"===document.readyState?e():window.addEventListener("load",e)}};return window.addEventListener("click",function(e){if(e.target.classList.contains("kint-ide-link")){var n=new XMLHttpRequest;n.open("GET",e.target.href),n.send(null),e.preventDefault()}}),e}()); diff --git a/resources/js/shared.js b/resources/js/shared.js index f9c3a3e09..900e57326 100644 --- a/resources/js/shared.js +++ b/resources/js/shared.js @@ -5,7 +5,7 @@ if (typeof window.kintShared === 'undefined') { var kintShared = { dedupe: function(selector, keep) { [].forEach.call(document.querySelectorAll(selector), function(elem) { - if (!keep) { + if (!keep || !keep.ownerDocument.contains(keep)) { keep = elem; }