Sha256: faabd6eaed4949f0a945125a189a13970bbce5c82a03ba983736518376b38789
Contents?: true
Size: 706 Bytes
Versions: 34
Compression:
Stored size: 706 Bytes
Contents
// 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) });
Version data entries
34 entries across 17 versions & 7 rubygems