vue-formular
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -7,24 +7,26 @@ var getSubmitter = require('./get-submitter'); | ||
if (this.errors.length>0) | ||
return handleErrors(this); | ||
setTimeout(function() { | ||
if (this.sending || (this.options.sendOnlyDirtyFields && this.pristine)) { | ||
return false; | ||
} | ||
if (this.errors.length>0) | ||
return handleErrors(this); | ||
var beforeSubmit = this.options.beforeSubmit(this); | ||
if (this.sending || (this.options.sendOnlyDirtyFields && this.pristine)) { | ||
return false; | ||
} | ||
if (typeof beforeSubmit=='boolean' && beforeSubmit) | ||
return getSubmitter(this).submit(e); | ||
var beforeSubmit = this.options.beforeSubmit(this); | ||
var resolveMethod = beforeSubmit.done?'done':'then'; | ||
var rejectMethod = beforeSubmit.catch?'catch':'fail'; | ||
if (typeof beforeSubmit=='boolean' && beforeSubmit) | ||
return getSubmitter(this).submit(e); | ||
beforeSubmit[resolveMethod](function() { | ||
return getSubmitter(this).submit(e); | ||
}.bind(this)) | ||
[rejectMethod](function() { | ||
var resolveMethod = beforeSubmit.done?'done':'then'; | ||
var rejectMethod = beforeSubmit.catch?'catch':'fail'; | ||
}); | ||
beforeSubmit[resolveMethod](function() { | ||
return getSubmitter(this).submit(e); | ||
}.bind(this)) | ||
[rejectMethod](function() { | ||
}); | ||
}.bind(this),0); | ||
} | ||
@@ -31,0 +33,0 @@ |
{ | ||
"name": "vue-formular", | ||
"description": "a comprehensive vue.js form component", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "vue", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62346
1740