@kerim1
I thinnk it is a little bit confussion, that some set functions are setting and some adding values.
E.g. setViewingDirectory sets a value and setBehavior adds a value
I think with two functions it would be more clear:
setBehavior(behavior?: CollectionBehavior[]) {
this.behavior = behavior;
}
addBehavior(behavior: CollectionBehavior | CollectionBehavior[]) {
this.behavior = Base.addArrayValue(behavior, this.behavior);
}
@kerim1
I thinnk it is a little bit confussion, that some set functions are setting and some adding values.
E.g. setViewingDirectory sets a value and setBehavior adds a value
I think with two functions it would be more clear: