Skip to content

Commit

Permalink
Remove unused parameters from FolderElement
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Nov 3, 2024
1 parent c28bc55 commit bb5d970
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/nodeElement/folderElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ class FolderElement extends NodeElement {
) as HTMLLinkElement;
}

public close(
slide = true,
animationSpeed: JQuery.Duration | undefined = "fast",
): void {
public close(slide: boolean, animationSpeed: JQuery.Duration): void {
if (!this.node.is_open) {
return;
}
Expand Down Expand Up @@ -86,8 +83,8 @@ class FolderElement extends NodeElement {

public open(
onFinished: OnFinishOpenNode | undefined,
slide = true,
animationSpeed: JQuery.Duration = "fast",
slide: boolean,
animationSpeed: JQuery.Duration,
): void {
if (this.node.is_open) {
return;
Expand Down

0 comments on commit bb5d970

Please sign in to comment.