Commit 78c9ebe6 authored by Nick Stenning's avatar Nick Stenning Committed by Randall Leeds

Make counter truly optional in thread directive

Accoring to the thread directive options this component is optional. It
is, however, used extensively by the directive template. This isn't a
nice fix, but it does make it possible for the thread tests to pass.
parent f3be7011
...@@ -125,6 +125,8 @@ thread = [ ...@@ -125,6 +125,8 @@ thread = [
if counter? if counter?
counter.count 'message', 1 counter.count 'message', 1
scope.$on '$destroy', -> counter.count 'message', -1 scope.$on '$destroy', -> counter.count 'message', -1
else
scope.count = -> 1
# Flash the thread when any child annotations are updated. # Flash the thread when any child annotations are updated.
scope.$on 'annotationUpdate', (event) -> scope.$on 'annotationUpdate', (event) ->
......
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