mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 04:52:52 +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')
|
|
});
|