bugfix
This commit is contained in:
parent
600cc0b91c
commit
c31db30118
@ -301,6 +301,11 @@ bricks.Tree = class extends bricks.VScrollPanel {
|
|||||||
} else if (opts.selected_data){
|
} else if (opts.selected_data){
|
||||||
d = this.selected_node.user_data
|
d = this.selected_node.user_data
|
||||||
}
|
}
|
||||||
|
d.meta_data = {
|
||||||
|
referer: this.id,
|
||||||
|
title: opts.label,
|
||||||
|
icon: opts.icon
|
||||||
|
}
|
||||||
this.dispatch(opts.name, d);
|
this.dispatch(opts.name, d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,7 @@ bricks.JsWidget = class {
|
|||||||
this._container = false;
|
this._container = false;
|
||||||
this.parent = null;
|
this.parent = null;
|
||||||
this.sizable_elements = [];
|
this.sizable_elements = [];
|
||||||
|
this.set_id(bricks.uuid());
|
||||||
if (options.css){
|
if (options.css){
|
||||||
this.set_css(options.css);
|
this.set_css(options.css);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user