Skip to content

Commit

Permalink
update doc, phetsims/scenery#1494
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 22, 2022
1 parent 65bdc69 commit fd74df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Disposable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class Disposable implements TDisposable {
// overridden after the Node constructor (which may happen).
const protoDispose = this.dispose;
this.dispose = () => {
assert && assert( !this.isDisposed, 'This PhetioObject has already been disposed, and cannot be disposed again' );
assert && assert( !this.isDisposed, 'This Disposable has already been disposed, and cannot be disposed again' );
protoDispose.call( this );
assert && assert( this.isDisposed, 'PhetioObject.dispose() call is missing from an overridden dispose method' );
assert && assert( this.isDisposed, 'Disposable.dispose() call is missing from an overridden dispose method' );
};
}
}
Expand Down

0 comments on commit fd74df9

Please sign in to comment.