This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global define: false, module: false */ | |
/*jslint forin: true, nomen: true, unparam: true */ | |
(function objectModule(definition) { // non-exporting module magic dance | |
'use strict'; | |
var | |
amd = 'amd', | |
exports = 'exports'; // keeps the method names for CommonJS / AMD from being compiled to single character variable | |
if (typeof define === 'function' && define[amd]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* String.endsWith / String.startsWith polyfills for IE, Opera and Safari | |
*/ | |
/*global define: false, module: false */ | |
(function stringModule(definition) { // non-exporting module magic dance | |
'use strict'; | |
var | |
amd = 'amd', | |
exports = 'exports'; // keeps the method names for CommonJS / AMD from being compiled to single character variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint regexp: true */ | |
/** | |
* window.setInterval and window.setTimeout polyfill to allow extra parameters (passed to called function) for IE < 10 | |
*/ | |
(function setTimeoutModule(global, partial, setInterval, setTimeout, slice) { | |
'use strict'; | |
function dogfooder() { | |
if (arguments.length) { // no need to polyfill | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @preserve Function.bind polyfill for IE8 | |
*/ | |
/*global define: false, module: false */ | |
(function functionModule(definition) { // non-exporting module magic dance | |
'use strict'; | |
var | |
amd = 'amd', | |
exports = 'exports'; // keeps the method names for CommonJS / AMD from being compiled to single character variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Polyfill of DOM4 methods | |
*/ | |
/*global define: false, module: false, console: false */ | |
/*jslint bitwise: true, forin: true */ | |
(function documentModule(global, definition) { // non-exporting module magic dance | |
'use strict'; | |
var | |
amd = 'amd', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Polyfill of .addEventListener, .removeEventListener, DOMContentLoaded for IE < 9 | |
* CustomEvent for IE < 9 | |
* Monkey patch custom event for IE9 - 11 | |
*/ | |
/*global define: false, module: false */ | |
/*jslint bitwise: true, forin: true, sloppy: true */ | |
(function eventModule(global, definition) { // non-exporting module magic dance | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Polyfill of DOMTokenList for IE < 9 | |
* Monkey patch of .add, .remove for IE 10 / 11, Firefox < 26 to support multiple arguments | |
* Monkey patch of .toggle for IE 10 / 11, Firefox < 24 to support second argument | |
*/ | |
/*global define: false, module: false */ | |
/*jslint nomen: true */ | |
(function domTokenListModule(global, definition) { // non-exporting module magic dance | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Polyfill of ES5 Array methods for IE < 9 | |
*/ | |
/*global define: false, module: false */ | |
/*jslint bitwise: true, forin: true */ | |
(function arrayModule(definition) { // non-exporting module magic dance | |
'use strict'; | |
var | |
amd = 'amd', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @preserve dataset polyfill for IE < 11. See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset and http://caniuse.com/#search=dataset | |
* | |
* @author ShirtlessKirk copyright 2015 | |
* @license WTFPL (http://www.wtfpl.net/txt/copying) | |
*/ | |
/*global define: false, module: false */ | |
/*jslint nomen: true, regexp: true, unparam: true */ | |
(function datasetModule(global, definition) { // non-exporting module magic dance | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @preserve FormData polyfill for IE < 10. See https://developer.mozilla.org/en/docs/Web/API/FormData and http://caniuse.com/#search=formdata | |
* | |
* @author ShirtlessKirk copyright 2015 | |
* @license WTFPL (http://www.wtfpl.net/txt/copying) | |
*/ | |
/*global define: false, module: false */ | |
/*jslint bitwise: true, continue: true, nomen: true */ | |
(function formDataModule(global, definition) { // non-exporting module magic dance | |
'use strict'; |
NewerOlder