mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
12 lines
No EOL
193 B
JavaScript
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);
|
|
}
|
|
}
|
|
} |