Skip to content
This repository was archived by the owner on Jun 3, 2018. It is now read-only.

Commit dc7cd97

Browse files
committed
Add installation instructions to README.
1 parent c3b8960 commit dc7cd97

File tree

3 files changed

+79
-35
lines changed

3 files changed

+79
-35
lines changed

Changes

Lines changed: 51 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,78 @@
1-
Revision history for jQuery Timeout Plugin
1+
1.3.6 2014-09-14
2+
----------------
23

3-
1.3.5 2014-09-14
4+
- Add installation instructions to README.
45

5-
- Fix `Timeout.reset()` handling of new delay.
66

7-
- Fix `jQuery.timeoutWith()` context handling.
7+
1.3.5 2014-09-14
8+
----------------
89

9-
- Fix jshint warnings.
10+
- Fix `Timeout.reset()` handling of new delay.
1011

11-
1.3.4 2014-09-14
12+
- Fix `jQuery.timeoutWith()` context handling.
1213

13-
- Exclude bower.json from Bower ignores.
14+
- Fix jshint warnings.
1415

15-
1.3.3 2014-09-14
1616

17-
- Register with Bower.
17+
1.3.4 2014-09-14
18+
----------------
1819

19-
1.3.2 2014-09-14
20+
- Exclude bower.json from Bower ignores.
2021

21-
- Build using Grunt.
2222

23-
- Update QUnit to v1.15.0.
23+
1.3.3 2014-09-14
24+
----------------
2425

25-
1.3.1 2014-03-27
26+
- Register with Bower.
2627

27-
- Update QUnit to v1.14.0.
2828

29-
- Add Changes.
29+
1.3.2 2014-09-14
30+
----------------
3031

31-
- Add license information to README.
32+
- Build using Grunt.
3233

33-
1.3.0 2014-01-02
34+
- Update QUnit to v1.15.0.
3435

35-
- Add `Timeout.reset()`.
3636

37-
1.2.1 2013-12-29
37+
1.3.1 2014-03-27
38+
----------------
3839

39-
- Fix callback context.
40+
- Update QUnit to v1.14.0.
4041

41-
1.2.0 2013-12-20
42+
- Add Changes.
4243

43-
- Move repository to GitHub,
44+
- Add license information to README.
4445

45-
- Add `jQuery.timeoutWith()`, `jQuery.clearWith()`.
4646

47-
- Add QUnit tests.
47+
1.3.0 2014-01-02
48+
----------------
4849

49-
1.1.0 2011-08-20
50+
- Add `Timeout.reset()`.
5051

51-
- Add optional args to `jQuery.timeout()`.
5252

53-
1.0.0 2011-04-02
53+
1.2.1 2013-12-29
54+
----------------
5455

55-
- Initial release.
56+
- Fix callback context.
57+
58+
59+
1.2.0 2013-12-20
60+
----------------
61+
62+
- Move repository to GitHub,
63+
64+
- Add `jQuery.timeoutWith()` and `Timeout.clearWith()`.
65+
66+
- Add QUnit tests.
67+
68+
69+
1.1.0 2011-08-20
70+
----------------
71+
72+
- Add optional args to `jQuery.timeout()`.
73+
74+
75+
1.0.0 2011-04-02
76+
----------------
77+
78+
- Initial release.

README.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
**jQuery 1.5** introduced the [Deferred Object][1] to register
44
callbacks for asynchronous events. Although the jQuery documentation
5-
contains examples on how to use Deferred objects with the native
6-
[`window.setTimeout()`][2] and [`window.clearTimeout()`][3] functions,
7-
jQuery does not provide a simple interface for timer-based Deferreds
8-
yet.
5+
contains [examples][2] on how to use Deferred objects with the native
6+
`window.setTimeout()` and `window.clearTimeout()` functions, jQuery
7+
does not provide a simple interface for timer-based Deferreds.
98

109
This plugin provides the two functions `jQuery.timeout()` and
1110
`jQuery.timeoutWith()` that create a Deferred object which is resolved
@@ -14,6 +13,26 @@ Deferred's Promise and provides additional methods for clearing and
1413
resetting pending timeouts.
1514

1615

16+
## Getting Started
17+
18+
Most easily, the plugin can be installed via [Bower][5]:
19+
20+
bower install jquery-timeout
21+
22+
To build and install from source, you need to have [npm][6] and
23+
[grunt][7] installed. In the repository's root directory, run:
24+
25+
npm install
26+
grunt test
27+
grunt dist
28+
29+
Either way, uncompressed and minified JavaScript files for inclusion
30+
in your project will be available in the `dist` directory:
31+
32+
dist/jquery.timeout.js
33+
dist/jquery.timeout.min.js
34+
35+
1736
## API Documentation
1837

1938
### jQuery.timeout( delay [, args... ] )
@@ -102,6 +121,8 @@ Licensed under the [MIT License][4].
102121

103122

104123
[1]: http://api.jquery.com/category/deferred-object/
105-
[2]: http://developer.mozilla.org/en/docs/Web/API/window.setTimeout
106-
[3]: http://developer.mozilla.org/en/docs/Web/API/window.clearTimeout
124+
[2]: http://learn.jquery.com/code-organization/deferreds/examples
107125
[4]: http://raw.github.com/tkem/jquery-timeout/master/LICENSE
126+
[5]: http://bower.io/
127+
[6]: http://www.npmjs.org/
128+
[7]: http://gruntjs.com/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-timeout",
3-
"version": "1.3.5",
3+
"version": "1.3.6",
44
"title": "jQuery Timeout Plugin",
55
"description": "Simple, yet elegant jQuery.Deferred wrapper for window.setTimeout() and window.clearTimeout().",
66
"keywords": ["timeout", "deferred", "promise", "delay"],

0 commit comments

Comments
 (0)