Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/jquery.debounce/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/jquery.debounce.specs.html
/jquery.debounce.specs.js
56 changes: 56 additions & 0 deletions src/jquery.debounce/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## Source

Can be found here: https://github.com/dfilatov/jquery-plugins/tree/master/src/jquery.debounce
Repository: https://github.com/dfilatov/jquery-plugins

## Debouncing

```js
debouncedFn = $.debounce(fn, timeout, [invokeAsap], [context]);
```

Options
-------

- `fn`

Original function.

- `timeout`

Delay.

- `invokeAsap`

True/false, false by default. Parameter indicating which of the above debouncing options should be used (the first is used by default).

- `context`

Context of the original function.

## Throttling

```js
throttledFn = $.throttle(fn, period, [context]);
```

Options
-------

- `fn`

Original function.

- `period`

Period.

- `context`

Context of the original function.

### LICENSE

Dual licensed under the MIT and GPL licenses:
- https://opensource.org/licenses/mit-license.php
- https://www.gnu.org/licenses/gpl.html
28 changes: 28 additions & 0 deletions src/jquery.debounce/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "jquery-debounce-throttle",
"version": "1.0.6",
"description": "jQuery debounce and throttle functions",
"main": "jquery.debounce.js",
"scripts": {},
"homepage": "https://github.com/dfilatov/jquery-plugins#readme",
"readme": "https://github.com/dfilatov/jquery-plugins/blob/master/readme.md",
"repository": {
"type": "git",
"url": "https://github.com/dfilatov/jquery-plugins.git"
},
"keywords": [
"debounce",
"jquery",
"throttle",
"jquery-debounce",
"jquery-throttle"
],
"dependencies": {
"jquery": ">=1.7"
},
"author": {
"name": "Filatov Dmitry",
"email": "[email protected]"
},
"license": "MIT"
}