mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 22:57:16 +08:00
FIX: misuse of @observes
it is passed "this" and the name of the property that changed, not actual values
This commit is contained in:
@ -18,7 +18,10 @@ export default Ember.Component.extend({
|
||||
},
|
||||
|
||||
@observes("autoCloseTime", "limited")
|
||||
_updateAutoCloseValid(autoCloseTime, limited) {
|
||||
_updateAutoCloseValid() {
|
||||
const autoCloseTime = this.get("autoCloseTime");
|
||||
const limited = this.get("limited");
|
||||
|
||||
var isValid = this._isAutoCloseValid(autoCloseTime, limited);
|
||||
this.set("autoCloseValid", isValid);
|
||||
},
|
||||
|
Reference in New Issue
Block a user