-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmin.js
More file actions
2 lines (2 loc) · 999 Bytes
/
min.js
File metadata and controls
2 lines (2 loc) · 999 Bytes
1
2
/*! (c) Andrea Giammarchi */
function disconnected(e){"use strict";function n(e){function n(e){u=new a;for(var n,o=e.length,r=0;r<o;r++)n=e[r],i(n.removedNodes,d,t),i(n.addedNodes,t,d);u=null}function i(e,n,t){for(var d,r=new o(n),i=e.length,s=0;s<i;1===(d=e[s++]).nodeType&&c(d,r,n,t));}function c(e,n,t,d){s.has(e)&&!u[t].has(e)&&(u[d]["delete"](e),u[t].add(e),e.dispatchEvent(n));for(var o=e.children,r=o.length,i=0;i<r;c(o[i++],n,t,d));}function a(){this[t]=new r,this[d]=new r}var u=null;try{new MutationObserver(n).observe(e,{subtree:!0,childList:!0})}catch(l){var v=0,f=[],h=function(e){f.push(e),clearTimeout(v),v=setTimeout(function(){n(f.splice(v=0,f.length))},0)};e.addEventListener("DOMNodeRemoved",function(e){h({addedNodes:[],removedNodes:[e.target]})},!0),e.addEventListener("DOMNodeInserted",function(e){h({addedNodes:[e.target],removedNodes:[]})},!0)}}var t="connected",d="dis"+t,o=e.Event,r=e.WeakSet,i=!0,s=new r;return function(e){return i&&(i=!i,n(e.ownerDocument)),s.add(e),e}}