Use constants instead of magic strings for trigger names.

This commit is contained in:
Nikita Lutsenko
2016-02-25 20:01:52 -08:00
parent 1945313794
commit 5e4cecd94e
4 changed files with 15 additions and 19 deletions

View File

@@ -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";