mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
19
node_modules/timers-ext/delay.js
generated
vendored
Normal file
19
node_modules/timers-ext/delay.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var callable = require('es5-ext/object/valid-callable')
|
||||
, nextTick = require('next-tick')
|
||||
, validTimeout = require('./valid-timeout')
|
||||
|
||||
, apply = Function.prototype.apply;
|
||||
|
||||
module.exports = function (fn/*, timeout*/) {
|
||||
var delay, timeout = arguments[1];
|
||||
callable(fn);
|
||||
if (timeout === undefined) {
|
||||
delay = nextTick;
|
||||
} else {
|
||||
timeout = validTimeout(timeout);
|
||||
delay = setTimeout;
|
||||
}
|
||||
return function () { return delay(apply.bind(fn, this, arguments), timeout); };
|
||||
};
|
||||
Reference in New Issue
Block a user