|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
362 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = once;
|
|---|
| 7 | function once(fn) {
|
|---|
| 8 | function wrapper(...args) {
|
|---|
| 9 | if (fn === null) return;
|
|---|
| 10 | var callFn = fn;
|
|---|
| 11 | fn = null;
|
|---|
| 12 | callFn.apply(this, args);
|
|---|
| 13 | }
|
|---|
| 14 | Object.assign(wrapper, fn);
|
|---|
| 15 | return wrapper;
|
|---|
| 16 | }
|
|---|
| 17 | module.exports = exports.default; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.