summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2019-08-22 10:35:40 +0000
committerRaphael Collet <rco@odoo.com>2019-09-11 07:55:17 +0000
commit0e028de72ea0f49586790b580774bac203a8ed96 (patch)
tree4ce89f74753e54fbe99d003ba9c4e112350f7ebb /addons/web/static/src/js/views/basic/basic_controller.js
parent0bf6fb05196ac92bb8a7626f1c398ee8683b2ddb (diff)
[IMP] api: lazy_property for user, company, companies
These variable are not supposed to change within a same environment. The lazy property will compute these variables only once, then store the result, while the property were computing these variables each time they were called. e.g. for a 1000 iteration loop, with `env.company`, the company was computed 1000 times. With a lazy property, the company will be computed one time only.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions