Skip to content

Commit

Permalink
add isDisposable, and assertNotDisposable, phetsims/axon#436
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 22, 2023
1 parent b77a014 commit 99606f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/nodes/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ const NODE_OPTION_KEYS = [
'touchArea', // Changes the area touches can interact with, see setTouchArea() for more documentation
'clipArea', // Makes things outside of a shape invisible, see setClipArea() for more documentation
'transformBounds', // Flag that makes bounds tighter, see setTransformBounds() for more documentation
...REQUIRES_BOUNDS_OPTION_KEYS
...REQUIRES_BOUNDS_OPTION_KEYS,

'isDisposable' // From Disposable, see Disposable.isDisposable
];

const DEFAULT_OPTIONS = {
Expand Down Expand Up @@ -367,6 +369,8 @@ export type NodeOptions = {
visiblePropertyOptions?: PropertyOptions<boolean>;
enabledPropertyOptions?: PropertyOptions<boolean>;
inputEnabledPropertyOptions?: PropertyOptions<boolean>;

isDisposable?: boolean; // See Disposable.isDisposable
} & ParallelDOMOptions & NodeTransformOptions;

type RasterizedOptions = {
Expand Down

0 comments on commit 99606f3

Please sign in to comment.