Skip to content

set and add functions #6

@Sozialarchiv

Description

@Sozialarchiv

@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);
}

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions