diff options
Diffstat (limited to 'build/internal/onlyOnce.js')
-rw-r--r-- | build/internal/onlyOnce.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/build/internal/onlyOnce.js b/build/internal/onlyOnce.js deleted file mode 100644 index 25e6779..0000000 --- a/build/internal/onlyOnce.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = onlyOnce; -function onlyOnce(fn) { - return function () { - if (fn === null) throw new Error("Callback was already called."); - fn.apply(this, arguments); - fn = null; - }; -} -module.exports = exports['default'];
\ No newline at end of file |