This commit is contained in:
yumoqing 2025-12-29 18:01:52 +08:00
parent 241db77f57
commit 3e863196f5
3 changed files with 4 additions and 4 deletions

View File

@ -160,8 +160,8 @@ bricks.DataGrid = class extends bricks.VBox {
}
if (this.opts.toolbar) {
this.admin_bar.add_widget(new bricks.Filler({}));
self.toolbar = new bricks.Toolbar(this.opts.toolbar);
self.toolbar.bind('command', this.command_handle.bind(this));
this.toolbar = new bricks.Toolbar(this.opts.toolbar);
this.toolbar.bind('command', this.command_handle.bind(this));
this.admin_bar.add_widget(this.toolbar);
}
this.create_parts();

View File

@ -65,7 +65,7 @@ bricks.Signaling = class {
}
del_handler(sessionid){
var handlers = {};
delete self.handlers[sessionid];
delete this.handlers[sessionid];
}
async signaling_recvdata(event){
var datapkg = JSON.parse(event.data);

View File

@ -378,7 +378,7 @@ bricks.TextBase = class extends bricks.JsWidget {
if (options.wrap){
this.set_style('flexWrap', 'wrap');
}
if (self.i18n){
if (this.i18n){
bricks.app.bind('lang', this.set_i18n_text.bind(this));
}
}