diff options
| author | alexkuhn <alexkuhn@users.noreply.github.com> | 2017-10-27 11:43:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-27 11:43:51 +0200 |
| commit | 49b8eed40857a9e352c8c9b8c90715a065eccd5c (patch) | |
| tree | 91cfbf067f3b1a9f7c15aced5be9fdd4b1b92619 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 7ed9a7fabeb613bf8b2c2980190399e8f9bbaa2b (diff) | |
[IMP] web: new utils function traversePath (#20521)
Enhanced version of the traverse function in utils,
so that it also builds the paths to any tree element.
There is a function visit in /enterprise/web_enterprise/static/src/js/app_switcher.js that has almost the same purpose as traverse in /odoo/addons/web/static/src/js/utility.js.
It seems more appropriate to move visit to utility.js.
Also, in order to keep good performance of traverse, it might be better to add an additional 'enhanced' version of traverse instead of making changes on traverse.
Hence the newly added function traversePath.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
