Some refactoring

This commit is contained in:
2020-04-29 11:02:13 +03:00
parent 21c773961b
commit 5cb1f2b879
3 changed files with 40 additions and 28 deletions

View File

@ -11,7 +11,7 @@ export function registerAction(constructor: Function) {
actionMap[constructor.name] = constructor;
}
export function createAction(name: string, scheduler: Scheduler): ActionController | undefined {
export function createActionHandler(name: string, scheduler: Scheduler): ActionController | undefined {
const storedFunction = actionMap[name];
if (storedFunction === undefined) {
return undefined;