forked from DGNum/gestioCOF
allow chaining on container in display method
This commit is contained in:
parent
485ae86a42
commit
b81b33c056
1 changed files with 2 additions and 0 deletions
|
@ -164,10 +164,12 @@ class ModelObject {
|
|||
* @param {Formatters.Formatter}
|
||||
* [formatter={@link Models.ModelObject#formatter|this.formatter()}]
|
||||
* Formatter class to use.
|
||||
* @return {jQuery} The DOM element $container, allowing methods chaining.
|
||||
*/
|
||||
display($container, options, formatter) {
|
||||
formatter = formatter || this.formatter();
|
||||
formatter.render(this, $container, options);
|
||||
return $container;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue