mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: Use the ScrollTop mixin instead of custom scrolling code.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user