move getters before dispatch

This commit is contained in:
nklhrstv 2020-05-19 14:27:59 +03:00
parent 2a4c4ead15
commit c07d6f3fb3

View file

@ -22,12 +22,12 @@ function CoreTransport() {
this.off = function(name, listener) {
events.off(name, listener);
};
this.dispatch = function(action, model) {
return core.dispatch(action, model);
};
this.getState = function(model) {
return core.get_state(model);
};
this.dispatch = function(action, model) {
return core.dispatch(action, model);
};
this.free = function() {
core.free();
};