File manager - Edit - /home/autoph/public_html/portal/ajs/vendors/bower_components/bower/Docs/En/Class/Mutators/Generators.md
Back
# atom.Class.Mutators.Generators Used to DRY such pattern: MyClass = atom.Class({ _property: null, get property () { if (this._property == null) { this._property = countValue(); } return this._property; } }); You can use Generators mutators instead (it will be counted only once): MyClass = atom.Class({ Generators: { property: function () { return countValue(); } } });
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.15 |
proxy
|
phpinfo
|
Settings