+ hudozka-data package; /api/v1/feed -> /api/v1/timeline; other updates

This commit is contained in:
tmshv committed 2016-03-26 17:33:22 +03:00
1 parent d0878ec296
commit b96d66591f
14 files changed
+84 -59

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import {EventEmitter} from 'events';
export default class Data extends EventEmitter {
constructor(store) {
super();
this.save = true;
this.store = store;
}
update(document) {
this.emit('update', document);
}
disableSaving() {
this.save = false;
}
enableSaving() {
this.save = true;
}
}