mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:34:13 -06:00
FIX: If an observer fires to rerender, schedule it once so that click
events are not destroyed.
This commit is contained in:
parent
d96acdeafa
commit
21de00f9f9
@ -51,7 +51,9 @@ Discourse.View.reopenClass({
|
||||
**/
|
||||
renderIfChanged: function() {
|
||||
var args = Array.prototype.slice.call(arguments, 0);
|
||||
args.unshift(function () { this.rerender(); });
|
||||
args.unshift(function () {
|
||||
Ember.run.once(this, 'rerender');
|
||||
});
|
||||
return Ember.observer.apply(this, args);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user