Use constants instead of magic strings for trigger names.
This commit is contained in:
@@ -10,7 +10,6 @@ export const Types = {
|
||||
};
|
||||
|
||||
const baseStore = function() {
|
||||
|
||||
let Validators = {};
|
||||
let Functions = {};
|
||||
let Triggers = Object.keys(Types).reduce(function(base, key){
|
||||
@@ -23,7 +22,7 @@ const baseStore = function() {
|
||||
Validators,
|
||||
Triggers
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const _triggerStore = {};
|
||||
|
||||
@@ -59,7 +58,6 @@ export function _unregister(a,b,c,d) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function getTrigger(className, triggerType, applicationId) {
|
||||
if (!applicationId) {
|
||||
throw "Missing ApplicationID";
|
||||
|
||||
Reference in New Issue
Block a user