Advertisement
bioforge91

Untitled

Apr 16th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * PLUGIN LIST
  3.  *
  4.  * jQuery throttle / debounce      - v1.1
  5.  * jQuery bindImageLoad            - v1.0.0
  6.  * HTML5 Placeholder jQuery Plugin - v2.1.1
  7.  * History API JavaScript Library  - v4.2.0
  8.  * js es6-promise implementatio    - v2.0.0
  9.  * classList implementation        - d2015-03-12
  10.  *
  11.  */
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. /*
  20.  * jQuery throttle / debounce - v1.1 - 3/7/2010
  21.  * http://benalman.com/projects/jquery-throttle-debounce-plugin/
  22.  *
  23.  * Copyright (c) 2010 "Cowboy" Ben Alman
  24.  * Dual licensed under the MIT and GPL licenses.
  25.  * http://benalman.com/about/license/
  26.  */
  27. (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
  28.  
  29. /**
  30.  * jQuery bindImageLoad
  31.  */
  32. (function(a){a.fn.bindImageLoad=function(c){return this.each(function(){var b=a(this);if(b.is("img")&&a.isFunction(c)){b.one("load",c);var d;d=this.complete?"undefined"!==typeof this.naturalWidth&&0===this.naturalWidth?!1:!0:!1;d&&b.trigger("load")}})}})(jQuery);
  33.  
  34. /* HTML5 Placeholder jQuery Plugin - v2.1.1
  35.  * Copyright (c)2015 Mathias Bynens
  36.  * 2015-03-11
  37.  */
  38. !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(d);if(d.value==f.attr("placeholder")&&f.hasClass(m.customClass))if(f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),b===!0)return f[0].value=c;f.focus()}else d.value="",f.removeClass(m.customClass),d==e()&&d.select()}function d(){var d,e=this,f=a(e),g=this.id;if(""===e.value){if("password"===e.type){if(!f.data("placeholder-textinput")){try{d=f.clone().attr({type:"text"})}catch(h){d=a("<input>").attr(a.extend(b(this),{type:"text"}))}d.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",c),f.data({"placeholder-textinput":d,"placeholder-id":g}).before(d)}f=f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g).show()}f.addClass(m.customClass),f[0].value=f.attr("placeholder")}else f.removeClass(m.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h="[object OperaMini]"==Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!h,j="placeholder"in document.createElement("textarea")&&!h,k=a.valHooks,l=a.propHooks;if(i&&j)g=a.fn.placeholder=function(){return this},g.input=g.textarea=!0;else{var m={};g=a.fn.placeholder=function(b){var e={customClass:"placeholder"};m=a.extend({},e,b);var f=this;return f.filter((i?"textarea":":input")+"[placeholder]").not("."+m.customClass).bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder"),f},g.input=i,g.textarea=j,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(m.customClass)?"":b.value},set:function(b,f){var g=a(b),h=g.data("placeholder-password");return h?h[0].value=f:g.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):g.hasClass(m.customClass)?c.call(b,!0,f)||(b.value=f):b.value=f,g):b.value=f}},i||(k.input=f,l.value=f),j||(k.textarea=f,l.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+m.customClass,this).each(c);setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){a("."+m.customClass).each(function(){this.value=""})})}});
  39.  
  40. /*!
  41.  * History API JavaScript Library v4.2.0
  42.  *
  43.  * Support: IE8+, FF3+, Opera 9+, Safari, Chrome and other
  44.  *
  45.  * Copyright 2011-2014, Dmitrii Pakhtinov ( [email protected] )
  46.  *
  47.  * http://spb-piksel.ru/
  48.  *
  49.  * Dual licensed under the MIT and GPL licenses:
  50.  *   http://www.opensource.org/licenses/mit-license.php
  51.  *   http://www.gnu.org/licenses/gpl.html
  52.  *
  53.  * Update: 2014-11-06 21:35
  54.  */
  55. (function(L){"function"===typeof define&&define.amd?define("object"!==typeof document||"loading"!==document.readyState?[]:"html5-history-api",L):L()})(function(){var h=!0,i=null,o=!1;function M(a,b){var c=e.history!==r;c&&(e.history=r);a.apply(r,b);c&&(e.history=j)}function F(){}function l(a,b,c){if(a!=i&&""!==a&&!b){var b=l(),d=g.getElementsByTagName("base")[0];!c&&d&&d.getAttribute("href")&&(d.href=d.href,b=l(d.href,i,h));c=b.d;d=b.h;a=""+a;a=/^(?:\w+\:)?\/\//.test(a)?0===a.indexOf("/")?d+a:a:d+"//"+b.g+(0===a.indexOf("/")?a:0===a.indexOf("?")?c+a:0===a.indexOf("#")?c+b.e+a:c.replace(/[^\/]+$/g,"")+a)}else if(a=b?a:f.href,!q||c)a=a.replace(/^[^#]*/,"")||"#",a=f.protocol.replace(/:.*$|$/,
  56. ":")+"//"+f.host+k.basepath+a.replace(RegExp("^#[/]?(?:"+k.type+")?"),"");N.href=a;var a=/(?:(\w+\:))?(?:\/\/(?:[^@]*@)?([^\/:\?#]+)(?::([0-9]+))?)?([^\?#]*)(?:(\?[^#]+)|\?)?(?:(#.*))?/.exec(N.href),b=a[2]+(a[3]?":"+a[3]:""),c=a[4]||"/",d=a[5]||"",e="#"===a[6]?"":a[6]||"",j=c+d+e,n=c.replace(RegExp("^"+k.basepath,"i"),k.type)+d;return{b:a[1]+"//"+b+j,h:a[1],g:b,i:a[2],k:a[3]||"",d:c,e:d,a:e,c:j,j:n,f:n+e}}function Z(){var a;try{a=e.sessionStorage,a.setItem(y+"t","1"),a.removeItem(y+"t")}catch(b){a=
  57. {getItem:function(a){a=g.cookie.split(a+"=");return 1<a.length&&a.pop().split(";").shift()||"null"},setItem:function(a){var b={};if(b[f.href]=j.state)g.cookie=a+"="+z.stringify(b)}}}try{m=z.parse(a.getItem(y))||{}}catch(c){m={}}s(p+"unload",function(){a.setItem(y,z.stringify(m))},o)}function A(a,b,c,d){var f=0;c||(c={set:F},f=1);var g=!c.set,j=!c.get,k={configurable:h,set:function(){g=1},get:function(){j=1}};try{w(a,b,k),a[b]=a[b],w(a,b,c)}catch(l){}if(!g||!j)if(a.__defineGetter__&&(a.__defineGetter__(b,
  58. k.get),a.__defineSetter__(b,k.set),a[b]=a[b],c.get&&a.__defineGetter__(b,c.get),c.set&&a.__defineSetter__(b,c.set)),!g||!j){if(f)return o;if(a===e){try{var n=a[b];a[b]=i}catch(q){}if("execScript"in e)e.execScript("Public "+b,"VBScript"),e.execScript("var "+b+";","JavaScript");else try{w(a,b,{value:F})}catch(r){"onpopstate"===b&&(s("popstate",c=function(){G("popstate",c,o);var b=a.onpopstate;a.onpopstate=i;setTimeout(function(){a.onpopstate=b},1)},o),O=0)}a[b]=n}else try{try{var m=H.create(a);w(H.getPrototypeOf(m)===
  59. a?m:a,b,c);for(var p in a)"function"===typeof a[p]&&(m[p]=a[p].bind(a));try{d.call(m,m,a)}catch(t){}a=m}catch(u){w(a.constructor.prototype,b,c)}}catch(v){return o}}return a}function $(a,b,c){c=c||{};a=a===P?f:a;c.set=c.set||function(c){a[b]=c};c.get=c.get||function(){return a[b]};return c}function B(a,b){var c=(""+("string"===typeof a?a:a.type)).replace(/^on/,""),d=t[c];if(d){b="string"===typeof a?b:a;if(b.target==i)for(var f=["target","currentTarget","srcElement","type"];a=f.pop();)b=A(b,a,{get:"type"===
  60. a?function(){return c}:function(){return e}});O&&(("popstate"===c?e.onpopstate:e.onhashchange)||F).call(e,b);for(var f=0,g=d.length;f<g;f++)d[f].call(e,b);return h}return aa(a,b)}function Q(){var a=g.createEvent?g.createEvent("Event"):g.createEventObject();a.initEvent?a.initEvent("popstate",o,o):a.type="popstate";a.state=j.state;B(a)}function v(a,b,c,d){q?x=f.href:(0===n&&(n=2),b=l(b,2===n&&-1!==(""+b).indexOf("#")),b.c!==l().c&&(x=d,c?f.replace("#"+b.f):f.hash=b.f));!C&&a&&(m[f.href]=a);D=o}function R(a){var b=
  61. x;x=f.href;if(b){S!==f.href&&Q();var a=a||e.event,b=l(b,h),c=l();a.oldURL||(a.oldURL=b.b,a.newURL=c.b);b.a!==c.a&&B(a)}}function T(a){setTimeout(function(){s("popstate",function(a){S=f.href;C||(a=A(a,"state",{get:function(){return j.state}}));B(a)},o)},0);!q&&a!==h&&"location"in j&&(U(E.hash),D&&(D=o,Q()))}function ba(a){var a=a||e.event,b;a:{for(b=a.target||a.srcElement;b;){if("A"===b.nodeName)break a;b=b.parentNode}b=void 0}var c="defaultPrevented"in a?a.defaultPrevented:a.returnValue===o;b&&"A"===
  62. b.nodeName&&!c&&(c=l(),b=l(b.getAttribute("href",2)),c.b.split("#").shift()===b.b.split("#").shift()&&b.a&&(c.a!==b.a&&(E.hash=b.a),U(b.a),a.preventDefault?a.preventDefault():a.returnValue=o))}function U(a){var b=g.getElementById(a=(a||"").replace(/^#/,""));b&&b.id===a&&"A"===b.nodeName&&(a=b.getBoundingClientRect(),e.scrollTo(I.scrollLeft||0,a.top+(I.scrollTop||0)-(I.clientTop||0)))}var e=("object"===typeof window?window:this)||{};if(!e.history||"emulate"in e.history)return e.history;var g=e.document,
  63. I=g.documentElement,H=e.Object,z=e.JSON,f=e.location,r=e.history,j=r,J=r.pushState,V=r.replaceState,q=!!J,C="state"in r,w=H.defineProperty,E=A({},"t")?{}:g.createElement("a"),p="",K=e.addEventListener?"addEventListener":(p="on")&&"attachEvent",W=e.removeEventListener?"removeEventListener":"detachEvent",X=e.dispatchEvent?"dispatchEvent":"fireEvent",s=e[K],G=e[W],aa=e[X],k={basepath:"/",redirect:0,type:"/",init:0},y="__historyAPI__",N=g.createElement("a"),x=f.href,S="",O=1,D=o,n=0,m={},t={},u=g.title,
  64. ca={onhashchange:i,onpopstate:i},Y={setup:function(a,b,c){k.basepath=(""+(a==i?k.basepath:a)).replace(/(?:^|\/)[^\/]*$/,"/");k.type=b==i?k.type:b;k.redirect=c==i?k.redirect:!!c},redirect:function(a,b){j.setup(b,a);b=k.basepath;if(e.top==e.self){var c=l(i,o,h).c,d=f.pathname+f.search;q?(d=d.replace(/([^\/])$/,"$1/"),c!=b&&RegExp("^"+b+"$","i").test(d)&&f.replace(c)):d!=b&&(d=d.replace(/([^\/])\?/,"$1/?"),RegExp("^"+b,"i").test(d)&&f.replace(b+"#"+d.replace(RegExp("^"+b,"i"),k.type)+f.hash))}},pushState:function(a,
  65. b,c){var d=g.title;u!=i&&(g.title=u);J&&M(J,arguments);v(a,c);g.title=d;u=b},replaceState:function(a,b,c){var d=g.title;u!=i&&(g.title=u);delete m[f.href];V&&M(V,arguments);v(a,c,h);g.title=d;u=b},location:{set:function(a){0===n&&(n=1);e.location=a},get:function(){0===n&&(n=1);return q?f:E}},state:{get:function(){return m[f.href]||i}}},P={assign:function(a){0===(""+a).indexOf("#")?v(i,a):f.assign(a)},reload:function(){f.reload()},replace:function(a){0===(""+a).indexOf("#")?v(i,a,h):f.replace(a)},
  66. toString:function(){return this.href},href:{get:function(){return l().b}},protocol:i,host:i,hostname:i,port:i,pathname:{get:function(){return l().d}},search:{get:function(){return l().e}},hash:{set:function(a){v(i,(""+a).replace(/^(#|)/,"#"),o,x)},get:function(){return l().a}}};if(function(){var a=g.getElementsByTagName("script"),a=(a[a.length-1]||{}).src||"";(-1!==a.indexOf("?")?a.split("?").pop():"").replace(/(\w+)(?:=([^&]*))?/g,function(a,b,c){k[b]=(c||"").replace(/^(0|false)$/,"")});s(p+"hashchange",
  67. R,o);var b=[P,E,ca,e,Y,j];C&&delete Y.state;for(var c=0;c<b.length;c+=2)for(var d in b[c])if(b[c].hasOwnProperty(d))if("function"===typeof b[c][d])b[c+1][d]=b[c][d];else{a=$(b[c],d,b[c][d]);if(!A(b[c+1],d,a,function(a,d){if(d===j)e.history=j=b[c+1]=a}))return G(p+"hashchange",R,o),o;b[c+1]===e&&(t[d]=t[d.substr(2)]=[])}j.setup();k.redirect&&j.redirect();k.init&&(n=1);!C&&z&&Z();if(!q)g[K](p+"click",ba,o);"complete"===g.readyState?T(h):(!q&&l().c!==k.basepath&&(D=h),s(p+"load",T,o));return h}())return j.emulate=
  68. !q,e[K]=function(a,b,c){a in t?t[a].push(b):3<arguments.length?s(a,b,c,arguments[3]):s(a,b,c)},e[W]=function(a,b,c){var d=t[a];if(d)for(a=d.length;a--;){if(d[a]===b){d.splice(a,1);break}}else G(a,b,c)},e[X]=B,j});
  69.  
  70. /*!
  71.  * @overview es6-promise - a tiny implementation of Promises/A+.
  72.  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  73.  * @license   Licensed under MIT license
  74.  *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
  75.  * @version   2.0.0
  76.  */
  77. (function(){function r(a,b){n[l]=a;n[l+1]=b;l+=2;2===l&&A()}function s(a){return"function"===typeof a}function F(){return function(){process.nextTick(t)}}function G(){var a=0,b=new B(t),c=document.createTextNode("");b.observe(c,{characterData:!0});return function(){c.data=a=++a%2}}function H(){var a=new MessageChannel;a.port1.onmessage=t;return function(){a.port2.postMessage(0)}}function I(){return function(){setTimeout(t,1)}}function t(){for(var a=0;a<l;a+=2)(0,n[a])(n[a+1]),n[a]=void 0,n[a+1]=void 0;
  78. l=0}function p(){}function J(a,b,c,d){try{a.call(b,c,d)}catch(e){return e}}function K(a,b,c){r(function(a){var e=!1,f=J(c,b,function(c){e||(e=!0,b!==c?q(a,c):m(a,c))},function(b){e||(e=!0,g(a,b))});!e&&f&&(e=!0,g(a,f))},a)}function L(a,b){1===b.a?m(a,b.b):2===a.a?g(a,b.b):u(b,void 0,function(b){q(a,b)},function(b){g(a,b)})}function q(a,b){if(a===b)g(a,new TypeError("You cannot resolve a promise with itself"));else if("function"===typeof b||"object"===typeof b&&null!==b)if(b.constructor===a.constructor)L(a,
  79. b);else{var c;try{c=b.then}catch(d){v.error=d,c=v}c===v?g(a,v.error):void 0===c?m(a,b):s(c)?K(a,b,c):m(a,b)}else m(a,b)}function M(a){a.f&&a.f(a.b);x(a)}function m(a,b){void 0===a.a&&(a.b=b,a.a=1,0!==a.e.length&&r(x,a))}function g(a,b){void 0===a.a&&(a.a=2,a.b=b,r(M,a))}function u(a,b,c,d){var e=a.e,f=e.length;a.f=null;e[f]=b;e[f+1]=c;e[f+2]=d;0===f&&a.a&&r(x,a)}function x(a){var b=a.e,c=a.a;if(0!==b.length){for(var d,e,f=a.b,g=0;g<b.length;g+=3)d=b[g],e=b[g+c],d?C(c,d,e,f):e(f);a.e.length=0}}function D(){this.error=
  80. null}function C(a,b,c,d){var e=s(c),f,k,h,l;if(e){try{f=c(d)}catch(n){y.error=n,f=y}f===y?(l=!0,k=f.error,f=null):h=!0;if(b===f){g(b,new TypeError("A promises callback cannot return that same promise."));return}}else f=d,h=!0;void 0===b.a&&(e&&h?q(b,f):l?g(b,k):1===a?m(b,f):2===a&&g(b,f))}function N(a,b){try{b(function(b){q(a,b)},function(b){g(a,b)})}catch(c){g(a,c)}}function k(a,b,c,d){this.n=a;this.c=new a(p,d);this.i=c;this.o(b)?(this.m=b,this.d=this.length=b.length,this.l(),0===this.length?m(this.c,
  81. this.b):(this.length=this.length||0,this.k(),0===this.d&&m(this.c,this.b))):g(this.c,this.p())}function h(a){O++;this.b=this.a=void 0;this.e=[];if(p!==a){if(!s(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");N(this,a)}}var E=Array.isArray?Array.isArray:function(a){return"[object Array]"===
  82. Object.prototype.toString.call(a)},l=0,w="undefined"!==typeof window?window:{},B=w.MutationObserver||w.WebKitMutationObserver,w="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,n=Array(1E3),A;A="undefined"!==typeof process&&"[object process]"==={}.toString.call(process)?F():B?G():w?H():I();var v=new D,y=new D;k.prototype.o=function(a){return E(a)};k.prototype.p=function(){return Error("Array Methods must be provided an Array")};k.prototype.l=
  83. function(){this.b=Array(this.length)};k.prototype.k=function(){for(var a=this.length,b=this.c,c=this.m,d=0;void 0===b.a&&d<a;d++)this.j(c[d],d)};k.prototype.j=function(a,b){var c=this.n;"object"===typeof a&&null!==a?a.constructor===c&&void 0!==a.a?(a.f=null,this.g(a.a,b,a.b)):this.q(c.resolve(a),b):(this.d--,this.b[b]=this.h(a))};k.prototype.g=function(a,b,c){var d=this.c;void 0===d.a&&(this.d--,this.i&&2===a?g(d,c):this.b[b]=this.h(c));0===this.d&&m(d,this.b)};k.prototype.h=function(a){return a};
  84. k.prototype.q=function(a,b){var c=this;u(a,void 0,function(a){c.g(1,b,a)},function(a){c.g(2,b,a)})};var O=0;h.all=function(a,b){return(new k(this,a,!0,b)).c};h.race=function(a,b){function c(a){q(e,a)}function d(a){g(e,a)}var e=new this(p,b);if(!E(a))return (g(e,new TypeError("You must pass an array to race.")), e);for(var f=a.length,h=0;void 0===e.a&&h<f;h++)u(this.resolve(a[h]),void 0,c,d);return e};h.resolve=function(a,b){if(a&&"object"===typeof a&&a.constructor===this)return a;var c=new this(p,b);
  85. q(c,a);return c};h.reject=function(a,b){var c=new this(p,b);g(c,a);return c};h.prototype={constructor:h,then:function(a,b){var c=this.a;if(1===c&&!a||2===c&&!b)return this;var d=new this.constructor(p),e=this.b;if(c){var f=arguments[c-1];r(function(){C(c,d,f,e)})}else u(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};var z={Promise:h,polyfill:function(){var a;a="undefined"!==typeof global?global:"undefined"!==typeof window&&window.document?window:self;"Promise"in a&&"resolve"in
  86. a.Promise&&"reject"in a.Promise&&"all"in a.Promise&&"race"in a.Promise&&function(){var b;new a.Promise(function(a){b=a});return s(b)}()||(a.Promise=h)}};"function"===typeof define&&define.amd?define(function(){return z}):"undefined"!==typeof module&&module.exports?module.exports=z:"undefined"!==typeof this&&(this.ES6Promise=z)}).call(this);
  87.  
  88. /*
  89.  * classList.js: Cross-browser full element.classList implementation.
  90.  * 2015-03-12
  91.  *
  92.  * By Eli Grey, http://eligrey.com
  93.  * License: Dedicated to the public domain.
  94.  *   See https://github.com/eligrey/classList.js/blob/master/LICENSE.md
  95.  */
  96.  
  97. /*global self, document, DOMException */
  98. if("document" in self){if(!("classList" in document.createElement("_"))){(function(j){"use strict";if(!("Element" in j)){return}var a="classList",f="prototype",m=j.Element[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p<o;p++){if(p in this&&this[p]===q){return p}}return -1},n=function(o,p){this.name=o;this.code=DOMException[o];this.message=p},g=function(p,o){if(o===""){throw new n("SYNTAX_ERR","An invalid or illegal string was specified")}if(/\s/.test(o)){throw new n("INVALID_CHARACTER_ERR","String contains an invalid character")}return c.call(p,o)},d=function(s){var r=k.call(s.getAttribute("class")||""),q=r?r.split(/\s+/):[],p=0,o=q.length;for(;p<o;p++){this.push(q[p])}this._updateClassName=function(){s.setAttribute("class",this.toString())}},e=d[f]=[],i=function(){return new d(this)};n[f]=Error[f];e.item=function(o){return this[o]||null};e.contains=function(o){o+="";return g(this,o)!==-1};e.add=function(){var s=arguments,r=0,p=s.length,q,o=false;do{q=s[r]+"";if(g(this,q)===-1){this.push(q);o=true}}while(++r<p);if(o){this._updateClassName()}};e.remove=function(){var t=arguments,s=0,p=t.length,r,o=false,q;do{r=t[s]+"";q=g(this,r);while(q!==-1){this.splice(q,1);o=true;q=g(this,r)}}while(++s<p);if(o){this._updateClassName()}};e.toggle=function(p,q){p+="";var o=this.contains(p),r=o?q!==true&&"remove":q!==false&&"add";if(r){this[r](p)}if(q===true||q===false){return q}else{return !o}};e.toString=function(){return this.join(" ")};if(b.defineProperty){var l={get:i,enumerable:true,configurable:true};try{b.defineProperty(m,a,l)}catch(h){if(h.number===-2146823252){l.enumerable=false;b.defineProperty(m,a,l)}}}else{if(b[f].__defineGetter__){m.__defineGetter__(a,i)}}}(self))}else{(function(){var b=document.createElement("_");b.classList.add("c1","c2");if(!b.classList.contains("c2")){var c=function(e){var d=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(h){var g,f=arguments.length;for(g=0;g<f;g++){h=arguments[g];d.call(this,h)}}};c("add");c("remove")}b.classList.toggle("c3",false);if(b.classList.contains("c3")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(d,e){if(1 in arguments&&!this.contains(d)===!e){return e}else{return a.call(this,d)}}}b=null}())}};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement