mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
REFACTOR: Use the ScrollTop
mixin instead of custom scrolling code.
This commit is contained in:
parent
b94abc9c8e
commit
c668d49822
1 changed files with 1 additions and 10 deletions
|
@ -6,13 +6,4 @@
|
|||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.DiscoveryTopView = Discourse.View.extend({
|
||||
|
||||
didInsertElement: function() {
|
||||
this._super();
|
||||
Em.run.schedule('afterRender', function() {
|
||||
$('document').scrollTop(0);
|
||||
});
|
||||
},
|
||||
|
||||
});
|
||||
Discourse.DiscoveryTopView = Discourse.View.extend(Discourse.ScrollTop);
|
||||
|
|
Loading…
Reference in a new issue