From d7a4875fc5d40067818108a309734d9a4990a6e8 Mon Sep 17 00:00:00 2001 From: uellenberg Date: Wed, 12 Jan 2022 07:18:17 -0800 Subject: [PATCH] Revert "Add prefix to helpers" This reverts commit 081d0a665f26ad5699aee9c875f5d9fc505150a3. --- src/types/Behavior.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/types/Behavior.ts b/src/types/Behavior.ts index 9a6a051..e0af236 100644 --- a/src/types/Behavior.ts +++ b/src/types/Behavior.ts @@ -65,8 +65,6 @@ export class Behavior { public compilePost(id: number, actions: Record, 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]); } @@ -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))); }