mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove ScrollTop mixin (#12673)
It was deprecated (incorrectly! see the import 😅) 5 years ago. No references found anymore in core and all-the-plugins.
This commit is contained in:
parent
958fbfb719
commit
7d1cef71ff
@ -1,6 +1,4 @@
|
|||||||
import DiscourseURL from "discourse/lib/url";
|
import DiscourseURL from "discourse/lib/url";
|
||||||
import Mixin from "@ember/object/mixin";
|
|
||||||
import { deprecated } from "discourse/mixins/scroll-top";
|
|
||||||
import { isTesting } from "discourse-common/config/environment";
|
import { isTesting } from "discourse-common/config/environment";
|
||||||
import { scheduleOnce } from "@ember/runloop";
|
import { scheduleOnce } from "@ember/runloop";
|
||||||
|
|
||||||
@ -20,14 +18,4 @@ function scrollTop() {
|
|||||||
scheduleOnce("afterRender", context, context._scrollTop);
|
scheduleOnce("afterRender", context, context._scrollTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Mixin.create({
|
|
||||||
didInsertElement() {
|
|
||||||
deprecated(
|
|
||||||
"The `ScrollTop` mixin is deprecated. Replace it with a `{{d-section}}` component"
|
|
||||||
);
|
|
||||||
this._super(...arguments);
|
|
||||||
scrollTop();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export { scrollTop };
|
export { scrollTop };
|
||||||
|
Loading…
Reference in New Issue
Block a user