Commit 76b2d95
authored
ENG-1708 - Refactor pageRefObserverHandlers to improve observer initialization (#1007)
- Updated `enablePageRefObserver` to return the existing observer if already initialized, preventing unnecessary re-creation.
- Cleaned up the function structure for better readability and maintainability.
This change enhances the efficiency of the page reference observer setup in the application.1 parent cc26688 commit 76b2d95
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
0 commit comments