Skip to content

Commit

Permalink
Allow using RichText after assertion are turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jun 17, 2024
1 parent 269dd87 commit 1f1e2ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/nodes/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1572,10 +1572,10 @@ class Node extends ParallelDOM {
}

if ( assert ) {
assert( this._originalBounds === this.boundsProperty._value, 'Reference for bounds changed!' );
assert( this._originalLocalBounds === this.localBoundsProperty._value, 'Reference for localBounds changed!' );
assert( this._originalSelfBounds === this.selfBoundsProperty._value, 'Reference for selfBounds changed!' );
assert( this._originalChildBounds === this.childBoundsProperty._value, 'Reference for childBounds changed!' );
assert( !this._originalBounds || this._originalBounds === this.boundsProperty._value, 'Reference for bounds changed!' );
assert( !this._originalLocalBounds || this._originalLocalBounds === this.localBoundsProperty._value, 'Reference for localBounds changed!' );
assert( !this._originalSelfBounds || this._originalSelfBounds === this.selfBoundsProperty._value, 'Reference for selfBounds changed!' );
assert( !this._originalChildBounds || this._originalChildBounds === this.childBoundsProperty._value, 'Reference for childBounds changed!' );
}

// double-check that all of our bounds handling has been accurate
Expand Down

0 comments on commit 1f1e2ce

Please sign in to comment.