mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 23:53:43 +08:00
8 lines
200 B
JavaScript
8 lines
200 B
JavaScript
import ScrollTop from 'discourse/mixins/scroll-top';
|
|
|
|
export default Ember.View.extend(ScrollTop, {
|
|
_scrollOnModelChange: function() {
|
|
this._scrollTop();
|
|
}.observes('controller.model.id')
|
|
});
|