FIX: If an observer fires to rerender, schedule it once so that click

events are not destroyed.
This commit is contained in:
Robin Ward 2014-09-24 12:20:50 -04:00
parent d96acdeafa
commit 21de00f9f9

View File

@ -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);
}