From f9f52e3edc3595abd95e0ba5bd44d10df1b70715 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 8 Sep 2015 17:16:20 +1000 Subject: [PATCH] FIX: misuse of @observes it is passed "this" and the name of the property that changed, not actual values --- .../javascripts/discourse/components/auto-close-form.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/auto-close-form.js.es6 b/app/assets/javascripts/discourse/components/auto-close-form.js.es6 index 51669101067..2d564d246d4 100644 --- a/app/assets/javascripts/discourse/components/auto-close-form.js.es6 +++ b/app/assets/javascripts/discourse/components/auto-close-form.js.es6 @@ -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); },