diff --git a/classList.js b/classList.js index 942fb49..a76f95a 100644 --- a/classList.js +++ b/classList.js @@ -1,6 +1,6 @@ /* * classList.js: Cross-browser full element.classList implementation. - * 1.2.20171109 + * 1.2.201711092 * * By Eli Grey, http://eligrey.com * License: Dedicated to the public domain. @@ -176,7 +176,7 @@ if (objCtr.defineProperty) { get: classListGetter , enumerable: true , configurable: true - };view.x=[elemCtrProto, classListProp, classListPropDesc] + }; try { objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); } catch (ex) { // IE 8 doesn't support enumerable:true diff --git a/classList.min.js b/classList.min.js index 08a2419..2d3da87 100644 --- a/classList.min.js +++ b/classList.min.js @@ -1,7 +1,7 @@ /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ -"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(b){if("Element"in b){var f=b.Element.prototype,k=Object,l=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},p=Array.prototype.indexOf||function(c){for(var a=0,h=this.length;a