From 2925b7d1085cb0194fd0789fcde81e3a09038297 Mon Sep 17 00:00:00 2001 From: walsh9 Date: Fri, 10 Oct 2014 15:15:46 -0400 Subject: [PATCH] Add classList polyfill --- src/polyfill.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/polyfill.js b/src/polyfill.js index 9ae0cff..6149756 100644 --- a/src/polyfill.js +++ b/src/polyfill.js @@ -75,3 +75,9 @@ if (!Array.prototype.forEach) { } }; } + +// classList polyfill +/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ +;if("document" in self&&!("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