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
/** | |
* 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
/*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]) { |
OlderNewer