From ba2f6e4514d71ea1e615a13c02dec7e0c9a1f004 Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Thu, 28 Apr 2022 14:45:38 +0800 Subject: [PATCH] add two callback and limit it to child Signed-off-by: yaoyuchi Change-Id: I86fb91c13f55fa28206ca441a58b08ee9948e931 --- compiler/components/ability_component.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/components/ability_component.json b/compiler/components/ability_component.json index 544e737..dce6d8c 100644 --- a/compiler/components/ability_component.json +++ b/compiler/components/ability_component.json @@ -1,4 +1,5 @@ { "name": "AbilityComponent", - "attrs": ["onReady", "onDestroy", "onAbilityCreated", "onAbilityMoveToFront", "onAbilityWillRemove"] + "attrs": ["onReady", "onDestroy", "onAbilityCreated", "onAbilityMoveToFront", "onAbilityWillRemove", "onConnected", "onDisconnected"], + "atomic": true } \ No newline at end of file