source: frontend/node_modules/underscore/amd/after.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: 266 bytes
Line 
1define(function () {
2
3 // Returns a function that will only be executed on and after the Nth call.
4 function after(times, func) {
5 return function() {
6 if (--times < 1) {
7 return func.apply(this, arguments);
8 }
9 };
10 }
11
12 return after;
13
14});
Note: See TracBrowser for help on using the repository browser.