diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-02-23 16:09:53 -0800 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-02-23 16:10:07 -0800 |
commit | 070ed49496d5cf0b3c31a8091608610961191238 (patch) | |
tree | e26f489e37ae3a227867b3d1dfe6c04afa361c23 /build/internal/onlyOnce.js | |
parent | 3cf46d01b44c31203f4e59db280378a58d760d0d (diff) | |
download | async-modularization.tar.gz |
gitignore build directoriesmodularization
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 |