From 50a641548dc716780dfd11f2f40ac790e98405d4 Mon Sep 17 00:00:00 2001 From: "jiaxin.lai" Date: Wed, 12 Feb 2020 17:56:56 +0800 Subject: [PATCH] enable deprecated system in alipay platform (#6151) --- cocos/core/utils/deprecated.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cocos/core/utils/deprecated.ts b/cocos/core/utils/deprecated.ts index 74185c389b..baf2fbf30c 100644 --- a/cocos/core/utils/deprecated.ts +++ b/cocos/core/utils/deprecated.ts @@ -4,8 +4,6 @@ import { error, warn } from '../platform/debug'; -// TODO: will redefined in ALIPAY and runtime - let defaultLogTimes = 10; export function setDefaultLogTimes (times: number): void { @@ -78,8 +76,7 @@ replacePropertyLog = function (n: string, dp: string, n2: string, newp: string, } }; -replaceProperty = (owner: object, ownerName: string, properties: IReplacement[]) => { - if (CC_ALIPAY) { return; } +replaceProperty = (owner: object, ownerName: string, properties: IReplacement[]) => { if (owner == null) return; properties.forEach(function (item: IReplacement) { @@ -165,8 +162,7 @@ removePropertyLog = function (n: string, dp: string, f: Function, id: number) { } }; -removeProperty = (owner: object, ownerName: string, properties: IRemoveItem[]) => { - if (CC_ALIPAY) { return; } +removeProperty = (owner: object, ownerName: string, properties: IRemoveItem[]) => { if (owner == null) return; properties.forEach(function (item: IRemoveItem) { @@ -193,8 +189,7 @@ markAsWarningLog = function (n: string, dp: string, f: Function, id: number) { } }; -markAsWarning = (owner: object, ownerName: string, properties: IMarkItem[]) => { - if (CC_ALIPAY) { return; } +markAsWarning = (owner: object, ownerName: string, properties: IMarkItem[]) => { if (owner == null) return; let _defaultGetSet = function (o: {}, p: string, d: PropertyDescriptor, n: string, dp: string, f: Function, id: number) {