Ratelimit multi subscribe bubble render calls.

Since a single render call renders all items, we only need to call this
once, after all items have been added.
This commit is contained in:
Max Goodman
2013-06-05 15:55:39 -07:00
parent 14b62169a5
commit 47711af358

View File

@@ -387,7 +387,7 @@ r.multi.MultiSubscribeBubble = r.ui.Bubble.extend({
initialize: function() {
this.listenTo(this, 'show', this.load)
this.listenTo(r.multi.mine, 'reset add', this.render)
this.listenTo(r.multi.mine, 'reset add', _.debounce(this.render, 100))
r.ui.Bubble.prototype.initialize.apply(this)
},