diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-03-28 09:48:01 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-03-30 11:26:32 +0200 |
| commit | c5c2b4855bd6f2adf2f9a6e1f5cec159c4766169 (patch) | |
| tree | f99e6cc946e9a66fb2a376355a900d6c6e1f805b /addons/web/static/src/js | |
| parent | 31025540c49dc236fe33d329a5802660237ca521 (diff) | |
[REF] web: put willStart method before start (AbstractField)
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/fields/abstract_field.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js index 2534f8ae90a..5cc3f1d17d2 100644 --- a/addons/web/static/src/js/fields/abstract_field.js +++ b/addons/web/static/src/js/fields/abstract_field.js @@ -174,6 +174,14 @@ var AbstractField = Widget.extend({ this.parseOptions = {}; }, /** + * Loads the libraries listed in this.jsLibs and this.cssLibs + * + * @override + */ + willStart: function () { + return $.when(ajax.loadLibs(this), this._super.apply(this, arguments)); + }, + /** * When a field widget is appended to the DOM, its start method is called, * and will automatically call render. Most widgets should not override this. * @@ -187,14 +195,6 @@ var AbstractField = Widget.extend({ return self._render(); }); }, - /** - * Loads the libraries listed in this.jsLibs and this.cssLibs - * - * @override - */ - willStart: function () { - return $.when(ajax.loadLibs(this), this._super.apply(this, arguments)); - }, //-------------------------------------------------------------------------- // Public |
