mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
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:
@@ -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)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user