This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Commit cd12922
committed
perf: optimize binding equals performance.
The angular watch function is already fetching the scope value, so there is no need to fetch it again inside equals.
Also the symantics of `angular.equals()` is such that filtering the properties with `$firebaseUtils.scopeData()` before passing to `angular.equals()` is unnecessary.1 parent b1ec35b commit cd12922
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
327 | 325 | | |
328 | 326 | | |
329 | 327 | | |
| |||
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
342 | | - | |
343 | | - | |
| 340 | + | |
| 341 | + | |
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | | - | |
| 348 | + | |
351 | 349 | | |
352 | 350 | | |
353 | 351 | | |
| |||
0 commit comments