_listener:c})):console.log("Failed to _attach event:"+b+" on "+a)},g=function(a,b,c){if("undefined"!==typeofa.detachEvent){varf=a.KIS_0_6_0;if(f&&f.listeners&&f.listeners[b])for(vare=f.listeners[b],g=e.length,i=0;i<g;i++)if(e[i].callback===c){a.detachEvent("on"+b,e[i]._listener);e.splice(i,1);0===e.length&&deletef.listeners[b];break}}});e=function(a,b,h,f){varj,k;if(typeofa==="undefined"){console.log(arguments);console.log(b);returnfalse}if(b.match(/^([\w\-]+)$/))f===true?c(a,b,h):g(a,b,h);
"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(c){varc=(c.HTMLElement||c.Element).prototype,g=Object,e=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},b=Array.prototype.indexOf||function(a){for(varb=0,d=this.length;b<d;b++)if(binthis&&this[b]===a)returnb;return-1},a=function(a,b){this.name=a;this.code=DOMException[a];this.message=b},d=function(d,c){if(""===c)thrownewa("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(c))thrownewa("INVALID_CHARACTER_ERR",
"String contains an invalid character");returnb.call(d,c)},h=function(a){for(varb=e.call(a.className),b=b?b.split(/\s+/):[],d=0,c=b.length;d<c;d++)this.push(b[d]);this._updateClassName=function(){a.className=this.toString()}},f=h.prototype=[],j=function(){returnnewh(this)};a.prototype=Error.prototype;f.item=function(a){returnthis[a]||null};f.contains=function(a){return-1!==d(this,a+"")};f.add=function(a){a+="";-1===d(this,a)&&(this.push(a),this._updateClassName())};f.remove=function(a){a=d(this,
(function(){functionc(b,a,d){varc,e;"undefined"!==typeofb.hasAttribute?(b.hasAttribute(a)&&(c=b.getAttribute(a)),e=!0):"undefined"!==typeofb[a]?(c=b[a],e=!1):"class"===a&&"undefined"!==typeofb.className&&(a="className",c=b.className,e=!1);if("undefined"===typeofc&&("undefined"===typeofd||null===d))returnconsole.log(d),console.log(b),console.log("Element does not have the selected attribute"),null;if("undefined"===typeofd)returnc;"undefined"!==typeofd&&null!==d?!0===e?b.setAttribute(a,d):
c,null;console.log("Property "+a+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(b){$_.each(function(a){a.classList.add(b)})},removeClass:function(b){$_.each(function(a){a.classList.remove(b)})},hide:function(){this.css("display","none")},show:function(b){"undefined"===typeofb&&(b="block");this.css("display",b)},attr:function(b,a){vard=this.el;if(1<d.length&&"undefined"===typeofa)console.log(d),console.log("Must be a singular element");elseif(1<d.length&&"undefined"!==typeofa)$_.each(function(d){returnc(d,