enable deprecated system in alipay platform (#6151)

This commit is contained in:
jiaxin.lai
2020-02-12 17:56:56 +08:00
committed by GitHub
parent 01b79164cb
commit 50a641548d
+3 -8
View File
@@ -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) {