WIP: Aureplop/kpsul js refactor #501

Draft
delobell wants to merge 215 commits from aureplop/kpsul_js_refactor into master
Showing only changes of commit b81b33c056 - Show all commits

View file

@ -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;
} }
} }