Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add global subscriptionCount method to Repository to ensure no subscr…

…iption leaks in specs
  • Loading branch information...
commit c20641b6375e7da21315eddcb6679561566dd515 1 parent 721d8f2
@nathansobo authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/assets/javascripts/monarch/repository.coffee
View
6 lib/assets/javascripts/monarch/repository.coffee
@@ -66,3 +66,9 @@ Monarch.Repository =
@pauseCount = 0
delete @deferredUpdates
table.clear() for name, table of @tables
+
+ subscriptionCount: ->
+ count = 0
+ for name, table of @tables
+ count += table.subscriptionCount()
+ count
Please sign in to comment.
Something went wrong with that request. Please try again.