From 9cc74c2ae12c0f3ef13c448f77611a39186ed110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=9C=9C=E7=B3=96=E6=97=B6=E5=85=89-Next?= <> Date: Thu, 15 Aug 2019 15:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E5=BC=80=E5=90=AF=E8=8A=82=E7=82=B9=E6=A0=91?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- js/app.js | 2 +- version.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6488b2a..7046556 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ccc-devtools v2.3.1 +# ccc-devtools v2.3.2 Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。 ## 预览 diff --git a/js/app.js b/js/app.js index 5fc8b51..8b1215f 100644 --- a/js/app.js +++ b/js/app.js @@ -308,7 +308,7 @@ let app = new Vue({ setTimeout(() => { if (!cc.Node.prototype.isLeaf) { cc.js.getset(cc.Node.prototype, 'isLeaf', function () { - return this.childrenCount === 0; + return !this.children || this.childrenCount === 0; }, function (value) { }, false, true); diff --git a/version.json b/version.json index b91c0bf..08ef89b 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "name": "ccc-devtools", - "version": "2.3.1", + "version": "2.3.2", "author": "Next", "repo": "https://github.com/potato47/ccc-devtools.git" } \ No newline at end of file