This repository was archived by the owner on Aug 31, 2025. It is now read-only.
Commit c0df320
fix(tooltip): performance and scope fixes
Isolate scope contents should be the same after hiding and showing the
tooltip. The isolate scope's parent should also always be set to the
directive's scope correctly.
fix(tooltip): link on demand
- Calling $digest is enough as we only need to digest the watchers in
this scope and its children. No need to call $apply.
- Set invokeApply to false on $timeout for popUpDelay
- No need to test for cached reference when tooltip isn't visible as
the tooltip has no scope.
Closes angular-ui#1450
Closes angular-ui#1191
Closes angular-ui#14551 parent c4d0e2a commit c0df320
2 files changed
+235
-195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
| |||
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
139 | 164 | | |
140 | 165 | | |
141 | 166 | | |
| |||
323 | 348 | | |
324 | 349 | | |
325 | 350 | | |
| 351 | + | |
326 | 352 | | |
327 | 353 | | |
328 | 354 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | 355 | | |
336 | 356 | | |
337 | | - | |
338 | 357 | | |
339 | 358 | | |
340 | 359 | | |
| |||
0 commit comments