summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-08-22 11:45:13 +0200
committerqsm-odoo <qsm@odoo.com>2017-08-22 13:03:16 +0200
commitc587c154c24c0bdd07b09de8f77d8aad86a02bbe (patch)
treec6064298e29bf8f1f2e3d54719d4cd5e487b7113 /addons/web/static/src/js/views/basic/basic_model.js
parentf997c128c7295b5e76d7f77d79c4a82898debbcf (diff)
[REF] website: make better framework for animations
Since commit https://github.com/odoo/odoo/commit/0e08e653cd47e6ef00cf041d774ddec4b83431c1: The animation 'component' feature was introduced and allowed to define smooth animation (like the parallax one) thanks to particulary named methods. This feature was dangerous and ugly and does not match our convention requirements anymore (in particular adapting a regex to camel cased method names will be subject to lots of error). Also, during the website refactoring introduced with https://github.com/odoo/odoo/commit/2972976962617d4b8a0113bae58c640ab41cdff8, errors were found that were due to this feature. Indeed, it happened that some existing method names were matched by the regex (as a simple 'on_click'). This feature was also 'slowing' (by a very slow amount) the page loadings for no good reasons. The animation 'component' feature has been renamed to 'effect' and instead of naming methods with particular names, all the effects' options can now be simply described in the special 'effects' key of snippet animations.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions