From 1d38bf7e2c6d696c3f9d2bd2ead1b13512cef126 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 24 Jul 2019 13:55:18 +0200 Subject: [PATCH] DEV: removes deprecated property() usage from topic-footer-button api (#7930) --- .../discourse/lib/register-topic-footer-button.js.es6 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6 b/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6 index 8c132c830bc..b6e5c5c5e93 100644 --- a/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6 +++ b/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6 @@ -68,7 +68,7 @@ export function getTopicFooterButtons() { .filter(x => x) ); - const computedFunc = Ember.computed({ + return Ember.computed(...dependentKeys, { get() { const _isFunction = descriptor => descriptor && typeof descriptor === "function"; @@ -122,8 +122,6 @@ export function getTopicFooterButtons() { .reverse(); } }); - - return computedFunc.property.apply(computedFunc, dependentKeys); } export function clearTopicFooterButtons() {