mirror of
https://github.com/wassname/talk.git
synced 2026-08-17 11:27:52 +08:00
refactor into using config reducer
This commit is contained in:
@@ -3,10 +3,6 @@ export default class StreamInterface {
|
||||
this._stream = stream;
|
||||
}
|
||||
|
||||
dispatch(action) {
|
||||
return this._stream.dispatch(action);
|
||||
}
|
||||
|
||||
on(eventName, callback) {
|
||||
return this._stream.emitter.on(eventName, callback);
|
||||
}
|
||||
@@ -26,4 +22,12 @@ export default class StreamInterface {
|
||||
remove() {
|
||||
return this._stream.remove();
|
||||
}
|
||||
|
||||
enableDebug() {
|
||||
return this._stream.enableDebug();
|
||||
}
|
||||
|
||||
disableDebug() {
|
||||
return this._stream.disableDebug();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user