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

Version Path
babel-schmooze-sprockets-0.1.2 node_modules/core-js/library/modules/web.timers.js
babel-schmooze-sprockets-0.1.2 node_modules/core-js/modules/web.timers.js
babel-schmooze-sprockets-0.1.1 node_modules/core-js/library/modules/web.timers.js
babel-schmooze-sprockets-0.1.1 node_modules/core-js/modules/web.timers.js
babel-schmooze-sprockets-0.1.0 node_modules/core-js/library/modules/web.timers.js
babel-schmooze-sprockets-0.1.0 node_modules/core-js/modules/web.timers.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/core-js/library/modules/web.timers.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/core-js/modules/web.timers.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/core-js/library/modules/web.timers.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/core-js/modules/web.timers.js
es6_tilt-0.1.2 test/dummy/node_modules/core-js/modules/web.timers.js
es6_tilt-0.1.2 test/dummy/node_modules/core-js/library/modules/web.timers.js
es6_tilt-0.1.1 test/dummy/node_modules/core-js/modules/web.timers.js
es6_tilt-0.1.1 test/dummy/node_modules/core-js/library/modules/web.timers.js