added unit testing, and started implementing unit tests...phew
This commit is contained in:
15
node_modules/async/internal/once.js
generated
vendored
Normal file
15
node_modules/async/internal/once.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = once;
|
||||
function once(fn) {
|
||||
return function () {
|
||||
if (fn === null) return;
|
||||
var callFn = fn;
|
||||
fn = null;
|
||||
callFn.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
module.exports = exports["default"];
|
Reference in New Issue
Block a user