EthereumCommonwealth / etherwallet

Ethereum Classic blockchain interaction web tool.
https://ethereumproject.github.io/etherwallet/
BSD 4-Clause "Original" or "Old" License
14 stars 17 forks source link

reduce the number $scope.$watch's #211

Closed j-chimienti closed 6 years ago

j-chimienti commented 6 years ago

Issue:

having many $scope.$watch is not good for performance.

We should utilize $rootScope and $scope.$on to reduce the number of watches

Watches

76 of these babies. Sometimes it crosses over 100

[
  {
    "last": "is-valid",
    "eq": false
  },
  {
    "last": 61,
    "eq": false
  },
...