summaryrefslogtreecommitdiffstats
path: root/js/app/services/starredcount.coffee
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/services/starredcount.coffee
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/services/starredcount.coffee')
-rw-r--r--js/app/services/starredcount.coffee5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/app/services/starredcount.coffee b/js/app/services/starredcount.coffee
index 9d3d9deb5..1157b4748 100644
--- a/js/app/services/starredcount.coffee
+++ b/js/app/services/starredcount.coffee
@@ -21,7 +21,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
###
-angular.module('News').factory '_StarredCount', ->
+angular.module('News').factory 'StarredCount', ->
class StarredCount
@@ -41,5 +41,4 @@ angular.module('News').factory '_StarredCount', ->
return @_count
-
- return StarredCount
+ return new StarredCount()