Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shoxter committed Jul 8, 2016
1 parent 011b9f0 commit a7bb8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions addon/components/paper-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const { Component, computed, on, observer } = Ember;

export default Component.extend(ParentMixin, {
tagName: '',
isValid: computed('[email protected]', function() {
return !this.get('childComponents').isAny('isInvalid');
isValid: computed.not('[email protected]', function() {
return this.get('childComponents').isAny('isInvalid');
}),
isInvalid: computed('isValid', function() {
return !this.get('isValid');
isInvalid: computed.not('isValid', function() {
return this.get('isValid');
}),
sendToParent: on('init', observer('isValid', function() {
if (!this.get('parentAction')) {
Expand Down
1 change: 0 additions & 1 deletion addon/mixins/child-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Ember from 'ember';
const { Mixin } = Ember;

export default Mixin.create({
asdfgh: 'lel',
init() {
this._super(...arguments);
if (this.get('parentComponent')) {
Expand Down

0 comments on commit a7bb8bd

Please sign in to comment.