diff --git a/bricks/form.js b/bricks/form.js index 834a0f1..323a3a7 100644 --- a/bricks/form.js +++ b/bricks/form.js @@ -127,9 +127,9 @@ bricks.Form = class extends bricks.VBox { if (! opts.notoolbar) this.build_toolbar(this); } - redispatch_submited(args, event){ - console.log('redispatch_submited():args=',args, 'event=', event); - self.dispatch('submited', args); + redispatch_submited(event){ + console.log('redispatch_submited():'event=', event); + this.dispatch('submited', event.params); } build_toolbar(widget){ var box = new bricks.HBox({height:'auto', width:'100%'});