From 5a06b51c5abb98dda1c18085470ee4b5f8899a6e Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Wed, 17 Apr 2024 09:19:21 -0700 Subject: [PATCH] refactor: remove the final `.bounds()` call (#7695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ refactor: Use getBounds method instead of bounds in IndependentTimeContext. --- src/api/time/IndependentTimeContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/time/IndependentTimeContext.js b/src/api/time/IndependentTimeContext.js index ead0eb2f50..5f5b3b139b 100644 --- a/src/api/time/IndependentTimeContext.js +++ b/src/api/time/IndependentTimeContext.js @@ -430,7 +430,7 @@ class IndependentTimeContext extends TimeContext { this.followTimeContext(); // Emit bounds so that views that are changing context get the upstream bounds - this.emit('bounds', this.bounds()); + this.emit('bounds', this.getBounds()); this.emit(TIME_CONTEXT_EVENTS.boundsChanged, this.getBounds()); }