Skip to content

Commit c13110a

Browse files
authored
Merge pull request #825 from Turbo87/scroll-to-top
controllers/application: Remove obsolete scrollTo(0, 0) call
2 parents 1ec6c31 + 7ba11d0 commit c13110a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

app/controllers/application.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import Ember from 'ember';
22

3-
const { observer } = Ember;
4-
53
export default Ember.Controller.extend({
64
searchController: Ember.inject.controller('search'),
75

@@ -61,15 +59,6 @@ export default Ember.Controller.extend({
6159
this.set('nextFlashError', null);
6260
},
6361

64-
_scrollToTop() {
65-
window.scrollTo(0, 0);
66-
},
67-
68-
// TODO: remove observer & DOM mutation in controller..
69-
currentPathChanged: observer('currentPath', function() {
70-
Ember.run.scheduleOnce('afterRender', this, this._scrollToTop);
71-
}),
72-
7362
actions: {
7463
search() {
7564
this.transitionToRoute('search', {

0 commit comments

Comments
 (0)