All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.MutationObserver.min.js Maven / Gradle / Ivy

The newest version!
window.MutationObserver=window.MutationObserver||function(t){"use strict";function e(t){this._watched=[],this._listener=t}function a(t){!function a(){var r=t.takeRecords();r.length&&t._listener(r,t),t._timeout=setTimeout(a,e._period)}()}function r(e){var a={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(var r in e)g(a,r)&&e[r]!==t&&(a[r]=e[r]);return a}function n(t,e){var a=s(t,e);return function(n){var i,u=n.length;e.charData&&3===t.nodeType&&t.nodeValue!==a.charData&&n.push(new r({type:"characterData",target:t,oldValue:a.charData})),e.attr&&a.attr&&o(n,t,a.attr,e.afilter),(e.kids||e.descendents)&&(i=l(n,t,a,e)),(i||n.length!==u)&&(a=s(t,e))}}function i(t,e){return e.value}function u(t,e){return"style"!==e.name?e.value:t.style.cssText}function o(t,e,a,n){for(var i,u,o={},l=e.attributes,s=l.length;s--;)i=l[s],u=i.name,n&&!g(n,u)||(m(e,i)!==a[u]&&t.push(r({type:"attributes",target:e,attributeName:u,oldValue:a[u],attributeNamespace:i.namespaceURI})),o[u]=!0);for(u in a)o[u]||t.push(r({target:e,type:"attributes",attributeName:u,oldValue:a[u]}))}function l(e,a,n,i){function u(t,a,n,u,s){for(var d,c,h,f=t.length-1,p=-~((f-s)/2);h=t.pop();)d=n[h.i],c=u[h.j],i.kids&&p&&Math.abs(h.i-h.j)>=f&&(e.push(r({type:"childList",target:a,addedNodes:[d],removedNodes:[d],nextSibling:d.nextSibling,previousSibling:d.previousSibling})),p--),i.attr&&c.attr&&o(e,d,c.attr,i.afilter),i.charData&&3===d.nodeType&&d.nodeValue!==c.charData&&e.push(r({type:"characterData",target:d,oldValue:c.charData})),i.descendents&&l(d,c)}function l(a,n){for(var h,f,g,v,b,m,y,D=a.childNodes,N=n.kids,V=D.length,_=N?N.length:0,k=0,S=0,w=0;S




© 2015 - 2024 Weber Informatics LLC | Privacy Policy