[REF] web: put willStart method before start (AbstractField)
This commit is contained in:
@@ -173,6 +173,14 @@ var AbstractField = Widget.extend({
|
||||
this.formatOptions = {};
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user