|
|
@@ -14,19 +14,7 @@
|
|
|
* (except for comments in parens).
|
|
|
*/
|
|
|
|
|
|
-/* global window */
|
|
|
-
|
|
|
-(function (root, factory) {
|
|
|
- if (typeof module === "object" && module.exports) {
|
|
|
- // Node. Does not work with strict CommonJS, but
|
|
|
- // only CommonJS-like environments that support module.exports,
|
|
|
- // like Node.
|
|
|
- module.exports = factory();
|
|
|
- } else {
|
|
|
- // Browser globals (root is window)
|
|
|
- root.parseSrcset = factory();
|
|
|
- }
|
|
|
-}(window, function () {
|
|
|
+this.parseSrcset = (() => {
|
|
|
|
|
|
// 1. Let input be the value passed to this algorithm.
|
|
|
return function (input) {
|
|
|
@@ -327,4 +315,5 @@
|
|
|
} // (close parseDescriptors fn)
|
|
|
|
|
|
};
|
|
|
-}));
|
|
|
+
|
|
|
+})();
|