Skip to content

Commit

Permalink
fix: add init() directly above export default to fix bug in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Nov 7, 2021
1 parent 4ece072 commit 54a6f3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ function calculation(string) {
return eval(string);
}

CoCreateCalculation.init();


CoCreateObserver.init({
name: 'CoCreateCalculationChangeValue',
observe: ['attributes'],
Expand All @@ -210,4 +207,6 @@ CoCreateObserver.init({
}
});

CoCreateCalculation.init();

export default CoCreateCalculation;

0 comments on commit 54a6f3a

Please sign in to comment.