diff --git a/dist/domtokenlist.js b/dist/domtokenlist.js index d8f6e9c..66dcc30 100644 --- a/dist/domtokenlist.js +++ b/dist/domtokenlist.js @@ -1,5 +1,5 @@ /*! DOMTokenlist shim | Copyright 2015 Jonathan Wilsson and Bogdan Chadkin. */ -;(function (window) { +;typeof window !== 'undefined' && (function (window) { 'use strict'; if (!window.DOMTokenList) { @@ -46,7 +46,7 @@ } }(window)); -;(function (window) { +;typeof window !== 'undefined' && (function (window) { 'use strict'; var arr = []; @@ -176,7 +176,7 @@ window.DOMTokenList = DOMTokenList; }(window)); -;(function () { +;typeof window !== 'undefined' && (function () { 'use strict'; if ('classList' in document.createElement('a') && !window.QUnit) { @@ -190,7 +190,7 @@ }); }()); -;(function () { +;typeof window !== 'undefined' && (function () { 'use strict'; if ('relList' in document.createElement('a') && !window.QUnit) { diff --git a/dist/domtokenlist.min.js b/dist/domtokenlist.min.js index a684da6..24dfbb7 100644 --- a/dist/domtokenlist.min.js +++ b/dist/domtokenlist.min.js @@ -1,2 +1,2 @@ /*! DOMTokenlist shim | Copyright 2015 Jonathan Wilsson and Bogdan Chadkin. */ -!function(t){"use strict";if(t.DOMTokenList){var e=document.createElement("a").classList,n=DOMTokenList.prototype,r=n.add,i=n.remove,o=n.toggle;e.add("c1","c2");var c=function(t){return function(){var e,n=arguments;for(e=0;e