Skip to content

Commit

Permalink
updated readme to include ability to use array of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
janhartigan committed May 17, 2011
1 parent f2e3b9a commit 6225112
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ These are all valid calls:
Timed.after("50sec", function() { ... }); // 50 seconds
Timed.after(7, "mins", function() { ... }); // 7 minutes
Timed.after("33", "hours", function() { ... }); // 33 hours
Timed.after([
["1", "minute"],
[34, "seconds"],
[100, "milliseconds"]
], function() { ... });
```

`Timed.every`, for creating intervals, has the same exact syntax as `$.after`.
Expand Down

0 comments on commit 6225112

Please sign in to comment.