vue-async-methods
Advanced tools
Comparing version 0.7.0 to 0.7.1
11
index.js
@@ -142,6 +142,7 @@ 'use strict' | ||
catchError: function() { | ||
var self = this | ||
this.error = null | ||
this.method.promise.catch((err) => { | ||
this.error = err | ||
this.method.promise.catch(function() { | ||
self.error = err | ||
}) | ||
@@ -154,2 +155,4 @@ } | ||
beforeCreate: function() { | ||
var self = this | ||
for (const key in this.$options.asyncMethods || {}) { | ||
@@ -179,4 +182,4 @@ Vue.util.defineReactive(this, key, { | ||
this.$options.computed[computedName] = () => { | ||
return this[key].resolvedWith | ||
this.$options.computed[computedName] = function() { | ||
return self[key].resolvedWith | ||
} | ||
@@ -183,0 +186,0 @@ } |
{ | ||
"name": "vue-async-methods", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Vue async methods support", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
10175
159