ember-cli-once
Ember CLI one-time calculation addon.
ember-cli-once
exposes a factory which limits a function's executions. Its
return value will be calculated on first execution and cached. Subsequent calls
will immediately return the cached result.
Example
;; var i = 0;var foo = EmberObject; foo; // -> 1foo; // -> 1
Installing
With npm:
$ npm install --save ember-cli-once
Or with Ember CLI:
$ ember install ember-cli-once