mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
REMOVE unused hanldebars helpers
This commit is contained in:
parent
f6ec583988
commit
9ccbfe1b01
1 changed files with 0 additions and 12 deletions
|
|
@ -4,11 +4,9 @@ export default class RegisterHandlebarsHelpers {
|
|||
static registerHelpers() {
|
||||
Handlebars.registerHelper({
|
||||
times: this.times,
|
||||
join: this.join,
|
||||
add: this.add,
|
||||
subtract: this.subtract,
|
||||
includes: this.includes,
|
||||
case: this.case
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -18,10 +16,6 @@ export default class RegisterHandlebarsHelpers {
|
|||
return accum;
|
||||
}
|
||||
|
||||
static join(...options) {
|
||||
return options.slice(0, options.length - 1);
|
||||
}
|
||||
|
||||
static add(a, b) {
|
||||
const aNum = Number.parseInt(a);
|
||||
const bNum = Number.parseInt(b);
|
||||
|
|
@ -38,10 +32,4 @@ export default class RegisterHandlebarsHelpers {
|
|||
return list.includes(item);
|
||||
}
|
||||
|
||||
static case(value, options) {
|
||||
if (value == this.switch_value) {
|
||||
this.switch_break = true;
|
||||
return options.fn(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue