Skip to content

Commit

Permalink
Revert "Add prefix to helpers"
Browse files Browse the repository at this point in the history
This reverts commit 081d0a6.
  • Loading branch information
uellenberg committed Jan 12, 2022
1 parent 3d6b706 commit d7a4875
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/types/Behavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ export class Behavior {
public compilePost(id: number, actions: Record<number, string[]>, prefix: string) : void {
for(const priority in this.helpers) {
if(!actions.hasOwnProperty(priority)) actions[priority] = [];

actions[priority].push(prefix);
actions[priority].push(...this.helpers[priority]);
}

Expand All @@ -75,7 +73,6 @@ export class Behavior {

for(const key in this.postParts) {
if(!actions.hasOwnProperty(key)) actions[key] = [];

actions[key].push(prefix);
actions[key].push(...this.postParts[key].map((part, idx) => part(id, idx)));
}
Expand Down

0 comments on commit d7a4875

Please sign in to comment.