From 640350960a782cc8ec54db558feeedc9151b0c0d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 28 Oct 2024 15:48:40 +0800 Subject: [PATCH] bugfix --- bricks/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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