mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 08:59:57 -04: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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue