valid : function(){ var valids = { // photo : this.validPhoto(), material : this.validMaterial(), cause : this.validCause(), faultParagraph : this.validFaultParagraph() } if(store.checkForce && store.isNeedGS)valids.isNeedGS = this.validLightCheck() Promise.props(valids) .then(function(result){ this.revert(result) }.bind(this)) .catch(function(error){ notify.error(error) }) },
valid : function(){ var store = this.store var valids = { photo : this.validPhoto(), triggerOdm : this.triggerOdm(), isNeedRate : this.validRateCheck(), isNeedGS : this.validLightCheck(), material : this.validMaterial() } Promise.props(valids) .then(function(result){ this.revert(result) }.bind(this)) .catch(function(error){ notify.error(error) }) },