Skip to content

Commit

Permalink
Fix assertion messages, see #46
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 29, 2018
1 parent 2a86222 commit 3cf2156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/PhetioObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ define( function( require ) {
// overridden after the Node constructor (which may happen).
var protoDispose = this.dispose;
this.dispose = function() {
assert && assert( !this.isDisposed, 'This Node has already been disposed, and cannot be disposed again' );
assert && assert( !this.isDisposed, 'This PhetioObject has already been disposed, and cannot be disposed again' );
protoDispose.call( this );
assert && assert( this.isDisposed, 'Node.dispose() call is missing from an overridden dispose method' );
assert && assert( this.isDisposed, 'PhetioObject.dispose() call is missing from an overridden dispose method' );
};
}
}
Expand Down

0 comments on commit 3cf2156

Please sign in to comment.