FIX: misuse of @observes

it is passed "this" and the name of the property that changed, not actual values
This commit is contained in:
Sam 2015-09-08 17:16:20 +10:00
parent b2633098ee
commit f9f52e3edc
1 changed files with 4 additions and 1 deletions

View File

@ -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);
},