mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
DEV: removes deprecated property() usage from topic-footer-button api (#7930)
This commit is contained in:
parent
e83dcfdb7b
commit
1d38bf7e2c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user