This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Commit 44ba349
committed
Simplify checkMetaVars $watch statement.
Per the (angular documentation)[https://code.angularjs.org/1.2.26/docs/api/ng/type/$rootScope.Scope#$digest] the "magic" hack you are using to detect each digest cycles is unnecessary. Simply register a watch function with no watch expression.
From the documentation:
> If you want to be notified whenever `$digest()` is called, you can register a `watchExpression` function with `$watch()` with no listener.1 parent f8ca2ec commit 44ba349
1 file changed
+1
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 363 | + | |
386 | 364 | | |
387 | 365 | | |
388 | 366 | | |
| |||
0 commit comments