Commit 29169630 authored by Randall Leeds's avatar Randall Leeds

Remove unnecessary watcher invocation

parent 8ea2f814
...@@ -314,12 +314,9 @@ tags = ['$window', ($window) -> ...@@ -314,12 +314,9 @@ tags = ['$window', ($window) ->
username = ['$filter', '$window', ($filter, $window) -> username = ['$filter', '$window', ($filter, $window) ->
link: (scope, elem, attr) -> link: (scope, elem, attr) ->
updateScopeProperties = -> scope.$watch 'user', ->
scope.uname = $filter('persona')(scope.user, 'username') scope.uname = $filter('persona')(scope.user, 'username')
scope.provider = $filter('persona')(scope.user, 'provider') scope.provider = $filter('persona')(scope.user, 'provider')
updateScopeProperties()
scope.$watch('user', updateScopeProperties)
scope.uclick = (event) -> scope.uclick = (event) ->
event.preventDefault() event.preventDefault()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment