summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-04-03 16:38:11 +0200
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitf68462198e4e7917ce32b16db7874d697ef442af (patch)
tree2bd6ff3864e3c2b25aa3f85fb31c8caacde72c51 /addons/web/static/src/js/views/basic/basic_model.js
parentb9d9c6e3bc8d3fd4bb547aadf002652bb7bb9db4 (diff)
[REF] web: don't debounce `DebouncedField._onInput` directly
The `DebouncedField` class has a `_onInput` method which is called when the user is typing text and which is debounced so that its action (setting the field's value) is not recalled too quickly. The problem is that if we have to do other actions which should not wait for the debouncing (or wait for another debouncing) when the user is typing text, this would imply to namespace the "input" event to add another handler, which is not very elegant. Instead, this commit changes the `DebouncedField` so that the `_onInput` handler is not debounced but instead calls a private method which is debounced (`_doDebouncedAction`).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions