summaryrefslogtreecommitdiff
path: root/node_modules/throttleit
diff options
context:
space:
mode:
authorArman <[email protected]>2018-08-02 16:50:59 -0700
committerArman <[email protected]>2018-08-02 16:50:59 -0700
commit7d5a0696ccc642db0d14aae8677ecada40bf85d1 (patch)
tree1bbbcf2f4c4a3a733326ac2401375f8d891cb2f1 /node_modules/throttleit
parentdialog box for adding items (diff)
downloadlauncher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.tar.xz
launcher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.zip
inital commit
Diffstat (limited to 'node_modules/throttleit')
-rw-r--r--node_modules/throttleit/.npmignore2
-rw-r--r--node_modules/throttleit/History.md11
-rw-r--r--node_modules/throttleit/Makefile11
-rw-r--r--node_modules/throttleit/Readme.md16
-rw-r--r--node_modules/throttleit/component.json13
-rw-r--r--node_modules/throttleit/example.js14
-rw-r--r--node_modules/throttleit/index.js30
-rw-r--r--node_modules/throttleit/package.json47
8 files changed, 0 insertions, 144 deletions
diff --git a/node_modules/throttleit/.npmignore b/node_modules/throttleit/.npmignore
deleted file mode 100644
index 48a2e24..0000000
--- a/node_modules/throttleit/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-components
-build
diff --git a/node_modules/throttleit/History.md b/node_modules/throttleit/History.md
deleted file mode 100644
index fdf168e..0000000
--- a/node_modules/throttleit/History.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-0.0.2 / 2013-03-26
-==================
-
- - Cache the return value
- - Don't use `setTimeout()`
-
-0.0.1 / 2013-03-26
-==================
-
- - Initial release
diff --git a/node_modules/throttleit/Makefile b/node_modules/throttleit/Makefile
deleted file mode 100644
index 0f14dac..0000000
--- a/node_modules/throttleit/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-
-build: components index.js
- @component build --dev
-
-components: component.json
- @component install --dev
-
-clean:
- rm -fr build components template.js
-
-.PHONY: clean
diff --git a/node_modules/throttleit/Readme.md b/node_modules/throttleit/Readme.md
deleted file mode 100644
index 3d8bd83..0000000
--- a/node_modules/throttleit/Readme.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# throttle
-
- Throttle a function
-
-## Installation
-
- $ component install component/throttle
-
-## API
-
-
-
-## License
-
- MIT
diff --git a/node_modules/throttleit/component.json b/node_modules/throttleit/component.json
deleted file mode 100644
index 7cf81a0..0000000
--- a/node_modules/throttleit/component.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "throttle",
- "repo": "component/throttle",
- "description": "Throttle a function",
- "version": "0.0.2",
- "keywords": [],
- "dependencies": {},
- "development": {},
- "license": "MIT",
- "scripts": [
- "index.js"
- ]
-}
diff --git a/node_modules/throttleit/example.js b/node_modules/throttleit/example.js
deleted file mode 100644
index a7f0f62..0000000
--- a/node_modules/throttleit/example.js
+++ /dev/null
@@ -1,14 +0,0 @@
-
-var throttle = require('./');
-
-function onprogress(n) {
- console.log('progress %s%', n);
-}
-
-onprogress = throttle(onprogress, 500);
-
-var n = 0;
-setInterval(function(){
- if (n >= 100) return;
- onprogress(n++);
-}, 50);
diff --git a/node_modules/throttleit/index.js b/node_modules/throttleit/index.js
deleted file mode 100644
index d9efe3c..0000000
--- a/node_modules/throttleit/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-
-/**
- * Module exports.
- */
-
-module.exports = throttle;
-
-/**
- * Returns a new function that, when invoked, invokes `func` at most one time per
- * `wait` milliseconds.
- *
- * @param {Function} func The `Function` instance to wrap.
- * @param {Number} wait The minimum number of milliseconds that must elapse in between `func` invokations.
- * @return {Function} A new function that wraps the `func` function passed in.
- * @api public
- */
-
-function throttle (func, wait) {
- var rtn; // return value
- var last = 0; // last invokation timestamp
- return function throttled () {
- var now = new Date().getTime();
- var delta = now - last;
- if (delta >= wait) {
- rtn = func.apply(this, arguments);
- last = now;
- }
- return rtn;
- };
-}
diff --git a/node_modules/throttleit/package.json b/node_modules/throttleit/package.json
deleted file mode 100644
index 9fef4e2..0000000
--- a/node_modules/throttleit/package.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "_from": "[email protected]",
- "_id": "[email protected]",
- "_inBundle": false,
- "_integrity": "sha1-z+34jmDADdlpe2H90qg0OptoDq8=",
- "_location": "/throttleit",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "[email protected]",
- "name": "throttleit",
- "escapedName": "throttleit",
- "rawSpec": "0.0.2",
- "saveSpec": null,
- "fetchSpec": "0.0.2"
- },
- "_requiredBy": [
- "/nugget"
- ],
- "_resolved": "https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz",
- "_shasum": "cfedf88e60c00dd9697b61fdd2a8343a9b680eaf",
- "_spec": "[email protected]",
- "_where": "/Users/armanshah/Desktop/node-projects/shopping-list/node_modules/nugget",
- "bugs": {
- "url": "https://github.com/component/throttle/issues"
- },
- "bundleDependencies": false,
- "component": {
- "scripts": {
- "throttle/index.js": "index.js"
- }
- },
- "dependencies": {},
- "deprecated": false,
- "description": "Throttle a function",
- "development": {},
- "homepage": "https://github.com/component/throttle#readme",
- "keywords": [],
- "license": "MIT",
- "name": "throttleit",
- "repository": {
- "type": "git",
- "url": "git://github.com/component/throttle.git"
- },
- "version": "0.0.2"
-}