WIP: Aureplop/kpsul js refactor #501
1 changed files with 2 additions and 0 deletions
|
@ -164,10 +164,12 @@ class ModelObject {
|
||||||
* @param {Formatters.Formatter}
|
* @param {Formatters.Formatter}
|
||||||
* [formatter={@link Models.ModelObject#formatter|this.formatter()}]
|
* [formatter={@link Models.ModelObject#formatter|this.formatter()}]
|
||||||
* Formatter class to use.
|
* Formatter class to use.
|
||||||
|
* @return {jQuery} The DOM element $container, allowing methods chaining.
|
||||||
*/
|
*/
|
||||||
display($container, options, formatter) {
|
display($container, options, formatter) {
|
||||||
formatter = formatter || this.formatter();
|
formatter = formatter || this.formatter();
|
||||||
formatter.render(this, $container, options);
|
formatter.render(this, $container, options);
|
||||||
|
return $container;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue