REFACTOR: Use the ScrollTop mixin instead of custom scrolling code.

This commit is contained in:
Robin Ward 2014-02-26 11:54:15 -05:00
parent b94abc9c8e
commit c668d49822

View File

@ -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);