From 7e3d099993ba5a5bf612b1dc82989a2cabda7aa0 Mon Sep 17 00:00:00 2001 From: "jiaxin.lai" Date: Mon, 17 Jun 2019 10:03:29 +0800 Subject: [PATCH] Fix component enable property decorator (#4632) --- cocos/components/component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cocos/components/component.ts b/cocos/components/component.ts index 7d84e1820c..14fb8de0db 100644 --- a/cocos/components/component.ts +++ b/cocos/components/component.ts @@ -122,9 +122,7 @@ class Component extends CCObject { * cc.log(comp.enabled); * ``` */ - @property({ - visible: false, - }) + @property get enabled () { return this._enabled; }