mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-21 01:06:25 +08:00
fix(core): decorators should define enumerable properties
This commit is contained in:
parent
6416c2544c
commit
22102a7e4a
@ -135,7 +135,8 @@ export function InstanceCheck(opts: CordovaCheckOptions = {}) {
|
|||||||
return getPromise(() => { });
|
return getPromise(() => { });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
enumerable: true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -159,7 +160,8 @@ export function CordovaCheck(opts: CordovaCheckOptions = {}) {
|
|||||||
}
|
}
|
||||||
return Promise.reject(check && check.error);
|
return Promise.reject(check && check.error);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
enumerable: true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -239,7 +241,8 @@ export function Cordova(opts: CordovaOptions = {}) {
|
|||||||
return {
|
return {
|
||||||
value: function(...args: any[]) {
|
value: function(...args: any[]) {
|
||||||
return wrap(this, methodName, opts).apply(this, args);
|
return wrap(this, methodName, opts).apply(this, args);
|
||||||
}
|
},
|
||||||
|
enumerable: true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -254,7 +257,8 @@ export function CordovaInstance(opts: any = {}) {
|
|||||||
return {
|
return {
|
||||||
value: function(...args: any[]) {
|
value: function(...args: any[]) {
|
||||||
return wrapInstance(this, methodName, opts).apply(this, args);
|
return wrapInstance(this, methodName, opts).apply(this, args);
|
||||||
}
|
},
|
||||||
|
enumerable: true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -312,7 +316,8 @@ export function CordovaFunctionOverride(opts: any = {}) {
|
|||||||
return {
|
return {
|
||||||
value: function(...args: any[]) {
|
value: function(...args: any[]) {
|
||||||
return overrideFunction(this, methodName, opts);
|
return overrideFunction(this, methodName, opts);
|
||||||
}
|
},
|
||||||
|
enumerable: true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -348,7 +353,8 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {
|
|||||||
wrappedSubscription.unsubscribe();
|
wrappedSubscription.unsubscribe();
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
enumerable: true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user