source:
frontend/node_modules/underscore/amd/once.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 248 bytes | |
| Line | |
|---|---|
| 1 | define(['./partial', './before'], function (partial, before) { |
| 2 | |
| 3 | // Returns a function that will be executed at most one time, no matter how |
| 4 | // often you call it. Useful for lazy initialization. |
| 5 | var once = partial(before, 2); |
| 6 | |
| 7 | return once; |
| 8 | |
| 9 | }); |
Note:
See TracBrowser
for help on using the repository browser.
