mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
DEV: Deprecate registerOption()
(#15209)
It's been a no-op for 5 years now.
This commit is contained in:
parent
03b0c9f267
commit
6e8df3d66b
@ -3,12 +3,16 @@ import {
|
||||
setup as setupIt,
|
||||
} from "pretty-text/engines/discourse-markdown-it";
|
||||
import { deepMerge } from "discourse-common/lib/object";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
|
||||
export function registerOption() {
|
||||
// TODO next major version deprecate this
|
||||
// if (window.console) {
|
||||
// window.console.log("registerOption is deprecated");
|
||||
// }
|
||||
deprecated(
|
||||
"`registerOption() from `pretty-text` is deprecated. Use `helper.registerOptions()` instead.",
|
||||
{
|
||||
since: "2.8.0.beta9",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function buildOptions(state) {
|
||||
|
Loading…
Reference in New Issue
Block a user