mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 18:12:56 +08:00
REFACTOR: Use the ScrollTop
mixin instead of custom scrolling code.
This commit is contained in:
parent
b94abc9c8e
commit
c668d49822
|
@ -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 New Issue
Block a user