petty logical bug in webix UI v.4.1.0

edited January 11 in Technical questions

webix UI v.4.1.0 (file webix_debug.js line 11139 - 11144)

                    if (typeof obj == "object")  // true
                        id  = obj.id || webix.uid();  // obj.id is null
                    else /* suggest to remove this line maybeee */
                        obj = { id:id, value:id };

                    this.order.push(obj.id); // null
                    if (this._scheme_init)
                        this._scheme_init(obj);
                    this.pull[obj.id] = obj; // only one thing this.pull.undefined => the last obj 
Tagged:

Comments

  • Yep, the second line must be

    obj.id = obj.id || webix.uid();
    

    Fix will be included in the next build, thanks for pointing the issue.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion