|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
325 bytes
|
| Line | |
|---|
| 1 | var restArguments = require('./restArguments.js');
|
|---|
| 2 |
|
|---|
| 3 | // Delays a function for the given number of milliseconds, and then calls
|
|---|
| 4 | // it with the arguments supplied.
|
|---|
| 5 | var delay = restArguments(function(func, wait, args) {
|
|---|
| 6 | return setTimeout(function() {
|
|---|
| 7 | return func.apply(null, args);
|
|---|
| 8 | }, wait);
|
|---|
| 9 | });
|
|---|
| 10 |
|
|---|
| 11 | module.exports = delay;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.