diff --git a/src/model/logicWrapper/LModelElement.tsx b/src/model/logicWrapper/LModelElement.tsx index d7ab2305e..fd1b6606a 100644 --- a/src/model/logicWrapper/LModelElement.tsx +++ b/src/model/logicWrapper/LModelElement.tsx @@ -3542,17 +3542,19 @@ export class LModel = any, C extends Contex private static otherObjectsTemp: Dictionary, LObject[]> = undefined as any; private static otherObectsAccessedKeys: DocString<"className">[] = []; // public otherObjectsSetup(){ LModel.otherObjectsTemp = undefined; LModel.otherObectsAccessedKeys = []; } - otherObjects!: LObject[]; - otherInstances!: LObject[]; - __info_of__otherObjects: Info = {type:"LObject[]", txt:
Alias for this.otherInstances.
}; - __info_of__otherInstances: Info = {type:"LObject[]", txt:
Read this.instancesOf documentation first. + otherObjects!: (excludeInstances: orArr<(string | LClass | Pointer)>, excludeSubclasses: boolean = false)=>LObject[]; + otherInstances!: (excludeInstances: orArr<(string | LClass | Pointer)>, excludeSubclasses: boolean = false)=>LObject[]; + __info_of__otherObjects: Info = {type:"(...excludeInstances: (string|LClass|Pointer)[], excludeSubclasses: boolean = false)=>LObject[]", txt:
Alias for this.otherInstances.
}; + __info_of__otherInstances: Info = {type:"(...excludeInstances: (string|LClass|Pointer)[], excludeSubclasses: boolean = false)=>LObject[]", txt:
Read this.instancesOf documentation first.
Retrieves all the objects not obtained between previous calls of this.instancesOf and the last call of this method.
Meaning calling it twice without any instancesOf in between, it will return all objects.
}; - public get_otherObjects(c: Context): ()=>LObject[]{ return this.get_otherInstances(c); } - public get_otherInstances(c: Context): ()=>LObject[]{ - return ()=>{ + public get_otherObjects(c: Context): (excludeInstances: orArr<(string | LClass | Pointer)>, excludeSubclasses: boolean = false)=>LObject[]{ + return this.get_otherInstances(c); } + public get_otherInstances(c: Context): (excludeInstances: orArr<(string | LClass | Pointer)>, excludeSubclasses: boolean = false)=>LObject[]{ + return (excludeInstances: orArr<(string | LClass | Pointer)>, includeSubclasses: boolean = false)=>{ let ret: LObject[]; + this.get_instancesOf(c)(excludeInstances, excludeInstances) // and drop the result if (!LModel.otherObjectsTemp) { ret = this.get_allSubObjects(c); } else { let dict = {...LModel.otherObjectsTemp};