Throttle /api/multi/mine fetches.

This commit is contained in:
Max Goodman
2013-05-02 17:27:54 -07:00
parent 19482c6a0b
commit 3657e2f93d

View File

@@ -3,6 +3,9 @@ r.multi = {
this.multis = new r.multi.GlobalMultiCache()
this.mine = new r.multi.MyMultiCollection()
// this collection gets fetched frequently by hover bubbles.
this.mine.fetch = _.throttle(this.mine.fetch, 60 * 1000)
var detailsEl = $('.multi-details')
if (detailsEl.length) {
var multi = this.multis.touch(detailsEl.data('path'))