REFACTOR: Remove Ember.get

This commit is contained in:
Robin Ward
2019-10-31 16:28:10 -04:00
parent 89f602f66b
commit 640a05c4ee
31 changed files with 84 additions and 56 deletions
@@ -1,3 +1,4 @@
import { get } from "@ember/object";
import { isEmpty } from "@ember/utils";
import { next } from "@ember/runloop";
import Component from "@ember/component";
@@ -57,7 +58,7 @@ export default Component.extend({
actions: {
chooseMessage(message) {
const messageId = Ember.get(message, "id");
const messageId = get(message, "id");
this.set("selectedTopicId", messageId);
next(() => $(`#choose-message-${messageId}`).prop("checked", "true"));
return false;
@@ -1,3 +1,4 @@
import { get } from "@ember/object";
import Component from "@ember/component";
import computed from "ember-addons/ember-computed-decorators";
import { categoryBadgeHTML } from "discourse/helpers/category-link";
@@ -35,7 +36,7 @@ export default Component.extend({
if (
category &&
Ember.get(category, "id") ===
get(category, "id") ===
Discourse.Site.currentProp("uncategorized_category_id")
) {
category = null;