Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
312 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = once;
|
---|
7 | function once(fn) {
|
---|
8 | return function () {
|
---|
9 | if (fn === null) return;
|
---|
10 | var callFn = fn;
|
---|
11 | fn = null;
|
---|
12 | callFn.apply(this, arguments);
|
---|
13 | };
|
---|
14 | }
|
---|
15 | module.exports = exports["default"]; |
---|
Note:
See
TracBrowser
for help on using the repository browser.