No Description

once.js 248B

123456789
  1. define(['./partial', './before'], function (partial, before) {
  2. // Returns a function that will be executed at most one time, no matter how
  3. // often you call it. Useful for lazy initialization.
  4. var once = partial(before, 2);
  5. return once;
  6. });