Version 1
[yaffs-website] / node_modules / grunt-uncss / node_modules / async / internal / once.js
diff --git a/node_modules/grunt-uncss/node_modules/async/internal/once.js b/node_modules/grunt-uncss/node_modules/async/internal/once.js
new file mode 100644 (file)
index 0000000..f0c379f
--- /dev/null
@@ -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"];
\ No newline at end of file