summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-02-22 09:48:25 +0100
committerAlexandre Kühn <aku@odoo.com>2018-02-22 14:23:03 +0100
commit89e2679f08010918e8e1dd04f126cfa9ecea5070 (patch)
tree6d2a18fcf862f415a09127eda566bb92b8557057 /addons/web/static/src/js/views/basic/basic_model.js
parent9445d2f04d0decc29366aedea819b091f287f5e5 (diff)
[FIX] web: tests: turn patchWindowGetSelection stateless
test_utils.js contains helper functions, which should be stateless (good practices). This was not the case with patchWindowGetSelection and unpatchWindowGetSelection, so instead we keep only the first function which returns the second one. From the test POV, instead of this: utils.patchWindowGetSelection(); // ... utils.unpatchWindowGetSelection(); It now looks like that: var unpatchWindowGetSelection = utils.patchWindowGetSelection(); // ... unpatchWindowGetSelection();
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions