mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
12 lines
304 B
JavaScript
12 lines
304 B
JavaScript
export default Ember.Component.extend({
|
|
visibleChanged: function(){
|
|
this.rerender();
|
|
}.observes("visible"),
|
|
|
|
render: function(buffer){
|
|
if (this._state !== 'inDOM' && this._state !== 'preRender') { return; }
|
|
if (!this.get("visible")) { return; }
|
|
|
|
return this._super(buffer);
|
|
}
|
|
});
|