(function($){function isDOMAttrModifiedSupported(){var p=document.createElement("p"); var flag=false; if(p.addEventListener){p.addEventListener("DOMAttrModified",function(){flag=true; },false); }else{if(p.attachEvent){p.attachEvent("onDOMAttrModified",function(){flag=true; }); }else{return false; }}p.setAttribute("id","target"); return flag; }function checkAttributes(chkAttr,e){if(chkAttr){var attributes=this.data("attr-old-value"); if(e.attributeName.indexOf("style")>=0){if(!attributes.style){attributes.style={}; }var keys=e.attributeName.split("."); e.attributeName=keys[0]; e.oldValue=attributes.style[keys[1]]; e.newValue=keys[1]+":"+this.prop("style")[$.camelCase(keys[1])]; attributes.style[keys[1]]=e.newValue; }else{e.oldValue=attributes[e.attributeName]; e.newValue=this.attr(e.attributeName); attributes[e.attributeName]=e.newValue; }this.data("attr-old-value",attributes); }}var MutationObserver=window.MutationObserver||window.WebKitMutationObserver; $.fn.attrchange=function(a,b){if(typeof a=="object"){var cfg={trackValues:false,callback:$.noop}; if(typeof a==="function"){cfg.callback=a; }else{$.extend(cfg,a); }if(cfg.trackValues){this.each(function(i,el){var attributes={}; for(var attr,i=0,attrs=el.attributes,l=attrs.length; i