DEV: Remove 'dasherize' string prototype extensions (#16740)

Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions
This commit is contained in:
Isaac Janzen
2022-05-13 10:56:23 -05:00
committed by GitHub
parent 66a04c5cfe
commit aa95a3d654
8 changed files with 16 additions and 8 deletions
@@ -1,12 +1,13 @@
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
import { dasherize } from "@ember/string";
export default Component.extend({
classNames: ["embed-setting"],
@discourseComputed("field")
inputId(field) {
return field.dasherize();
return dasherize(field);
},
@discourseComputed("field")