mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
20
react-app/node_modules/core-js/modules/web.timers.js
generated
vendored
Normal file
20
react-app/node_modules/core-js/modules/web.timers.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// ie9- setTimeout & setInterval additional parameters fix
|
||||
var global = require('./$.global')
|
||||
, $export = require('./$.export')
|
||||
, invoke = require('./$.invoke')
|
||||
, partial = require('./$.partial')
|
||||
, navigator = global.navigator
|
||||
, MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check
|
||||
var wrap = function(set){
|
||||
return MSIE ? function(fn, time /*, ...args */){
|
||||
return set(invoke(
|
||||
partial,
|
||||
[].slice.call(arguments, 2),
|
||||
typeof fn == 'function' ? fn : Function(fn)
|
||||
), time);
|
||||
} : set;
|
||||
};
|
||||
$export($export.G + $export.B + $export.F * MSIE, {
|
||||
setTimeout: wrap(global.setTimeout),
|
||||
setInterval: wrap(global.setInterval)
|
||||
});
|
Reference in New Issue
Block a user