From a9e236c5b5b2235881d92707a505be8359490707 Mon Sep 17 00:00:00 2001 From: Jordan Harris Date: Sat, 9 Jul 2016 00:38:24 -0400 Subject: [PATCH] Simplified form --- addon/components/paper-form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addon/components/paper-form.js b/addon/components/paper-form.js index 72f6e6213..d671ef519 100644 --- a/addon/components/paper-form.js +++ b/addon/components/paper-form.js @@ -5,10 +5,10 @@ const { Component, computed, on, observer } = Ember; export default Component.extend(ParentMixin, { tagName: '', - isValid: computed('childComponents.@each.isInvalid', function() { - return !this.get('childComponents').isAny('isInvalid'); + isValid: computed.not('isInvalid'), + isInvalid: computed('childComponents.@each.isInvalid', function() { + return this.get('childComponents').isAny('isInvalid'); }), - isInvalid: computed.not('isValid'), sendToParent: on('init', observer('isValid', function() { if (!this.get('parentAction')) { return;