jsketcher/modules/lstream/disableable.js
2018-10-30 23:01:57 -07:00

12 lines
No EOL
193 B
JavaScript

import {StateStream} from './state';
export class DisableableState extends StateStream {
disabled = false;
next(value) {
if (!this._disabled) {
super.next(value);
}
}
}