diff --git a/bricks/popup.js b/bricks/popup.js index c5367a8..590b3b7 100644 --- a/bricks/popup.js +++ b/bricks/popup.js @@ -38,10 +38,10 @@ bricks.Popup = class extends bricks.VBox { open(){ var rect; var w; - if (this.widget isinstanceof bricks.Widget){ + if (this.widget instanceof bricks.Widget){ rect = this.widget.showRectage() this.issub = true; - } else if (this.widget isinstanceof String){ + } else if (this.widget instanceof String){ var w = bricks.getWidgetById(this.widget, bricks.Body); if (!w){ ithis.issub = true