I am having some problems with backbone integration of webix. For example, does this webix code below not need a last line of “return this;”?
render: function () {
if (this.beforeRender) this.beforeRender.apply(this, arguments);
var config = this.config || this.options.config;
var el = this.el ? $(this.el)[0] : document.body;
//clear previous content if any
if (el && !el.config) el.innerHTML = "";
this.root = webix.ui(webix.copy(config), el);
if (this.afterRender) this.afterRender.apply(this, arguments);
return this; // WITHOUT THIS LINE ADDED, IT DOESN'T WORK
},
You are correct, it will be better to return “this” from the “render” method. While it is not a mandatory requirement, this is the expected behavior in many cases ( to use method chaining ). We will include the same fix in the next build.
It will be included in the next official build ( 1.5 ) for sure.
As for github - probably you are right. For now we are publishing only stable version there, but it has sense to distribute hot fixes in the same way