FIX: misuse of @observes
it is passed "this" and the name of the property that changed, not actual values
This commit is contained in:
parent
b2633098ee
commit
f9f52e3edc
|
@ -18,7 +18,10 @@ export default Ember.Component.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
@observes("autoCloseTime", "limited")
|
@observes("autoCloseTime", "limited")
|
||||||
_updateAutoCloseValid(autoCloseTime, limited) {
|
_updateAutoCloseValid() {
|
||||||
|
const autoCloseTime = this.get("autoCloseTime");
|
||||||
|
const limited = this.get("limited");
|
||||||
|
|
||||||
var isValid = this._isAutoCloseValid(autoCloseTime, limited);
|
var isValid = this._isAutoCloseValid(autoCloseTime, limited);
|
||||||
this.set("autoCloseValid", isValid);
|
this.set("autoCloseValid", isValid);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue