source: frontend/node_modules/underscore/amd/delay.js

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: 340 bytes
Line 
1define(['./restArguments'], function (restArguments) {
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 return delay;
12
13});
Note: See TracBrowser for help on using the repository browser.