mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
module.exports = function (f) {
|
|
var called;
|
|
return function () {
|
|
if (called) { return; }
|
|
called = true;
|
|
f.apply(this, Array.prototype.slice.call(arguments));
|
|
};
|
|
};
|