diff --git a/bricks/popup.js b/bricks/popup.js index a60bc39..7d6742e 100644 --- a/bricks/popup.js +++ b/bricks/popup.js @@ -10,7 +10,7 @@ bricks.Popup = class extends bricks.VBox { auto_dismiss: */ constructor(opts){ - super(); + super(opts); this.auto_task = null; this.issub = false; this.set_css('popup'); @@ -18,7 +18,7 @@ bricks.Popup = class extends bricks.VBox { this.set_style('zIndex', zindex); } add_widget(w, index){ - super().add_widget(w, index); + super.add_widget(w, index); if (this.auto_open){ this.open(); }