summaryrefslogtreecommitdiffstats
path: root/js/app/services/starredcount.coffee
diff options
context:
space:
mode:
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()