|
@@ -23,26 +23,8 @@ export class SObjectObserver {
|
|
|
* @param args 参数
|
|
|
*/
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
- notify(...args: any[]): void {
|
|
|
- if (args.length === 1) {
|
|
|
- this.callback.call(this.receiver, args[0]);
|
|
|
- } else if (args.length === 2) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1]);
|
|
|
- } else if (args.length === 3) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1], args[2]);
|
|
|
- } else if (args.length === 4) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1], args[2], args[3]);
|
|
|
- } else if (args.length === 5) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1], args[2], args[3], args[4]);
|
|
|
- } else if (args.length === 6) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
|
- } else if (args.length === 7) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
|
- } else if (args.length === 8) {
|
|
|
- this.callback.call(this.receiver, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
|
|
|
- } else {
|
|
|
- this.callback.call(this.receiver, ...args);
|
|
|
- }
|
|
|
+ notify(...args: any): void {
|
|
|
+ this.callback.call(this.receiver, ...args);
|
|
|
} // Function notify()
|
|
|
|
|
|
/**
|