+ hudozka-data package; /api/v1/feed -> /api/v1/timeline; other updates
This commit is contained in:
1 parent
d0878ec296
commit
b96d66591f
14 files changed
+84
-59
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user