summaryrefslogtreecommitdiffstats
path: root/js/app/directives
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-16 13:19:28 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-16 15:23:12 +0200
commit8df6d36d49d89f3bb7186b36436606adb039b3f8 (patch)
tree2fbbe1e55995d0f9277557838a25f351e371540e /js/app/directives
parentefc118431b6afbb7cc1df887e11195d8c7e761a7 (diff)
move instantiation into file where object is declared, fix unittests that overwrote services for all unittests and caused them to fail
Diffstat (limited to 'js/app/directives')
-rw-r--r--js/app/directives/newsitemscroll.coffee (renamed from js/app/directives/scrollmarksread.coffee)6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/app/directives/scrollmarksread.coffee b/js/app/directives/newsitemscroll.coffee
index 854f17923..5e7e42a3e 100644
--- a/js/app/directives/scrollmarksread.coffee
+++ b/js/app/directives/newsitemscroll.coffee
@@ -23,7 +23,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
scrolling = true
markingRead = true
-angular.module('News').directive 'scrollMarksRead', ['$rootScope', 'Config',
+angular.module('News').directive 'newsItemScroll', ['$rootScope', 'Config',
($rootScope, Config) ->
return (scope, elm, attr) ->
@@ -49,14 +49,14 @@ angular.module('News').directive 'scrollMarksRead', ['$rootScope', 'Config',
offset = $(feedItem).position().top
if offset <= -50
id = parseInt($(feedItem).data('id'), 10)
- $rootScope.$broadcast 'readItem', id
+ #$rootScope.$broadcast 'readItem', id
else
break
, Config.MarkReadTimeout
- scope.$apply attr.scrollMarksRead
+ scope.$apply attr.newsItemScroll
]