Commit 10ad1675 authored by Nick Stenning's avatar Nick Stenning Committed by Randall Leeds

threadFilter directive doesn't need thread

The require'd 'thread' controller is not used.
parent fa6b17e7
...@@ -143,7 +143,7 @@ ThreadFilterController = [ ...@@ -143,7 +143,7 @@ ThreadFilterController = [
threadFilter = [ threadFilter = [
'$parse', 'searchfilter' '$parse', 'searchfilter'
($parse, searchfilter) -> ($parse, searchfilter) ->
linkFn = (scope, elem, attrs, [ctrl, thread, counter]) -> linkFn = (scope, elem, attrs, [ctrl, counter]) ->
if counter? if counter?
scope.$watch (-> ctrl.match), (match, old) -> scope.$watch (-> ctrl.match), (match, old) ->
if match and not old if match and not old
...@@ -169,7 +169,7 @@ threadFilter = [ ...@@ -169,7 +169,7 @@ threadFilter = [
controller: 'ThreadFilterController' controller: 'ThreadFilterController'
controllerAs: 'threadFilter' controllerAs: 'threadFilter'
link: linkFn link: linkFn
require: ['threadFilter', 'thread', '?^deepCount'] require: ['threadFilter', '?^deepCount']
] ]
......
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