Comparing version 0.1.16 to 0.1.17
@@ -95,10 +95,13 @@ // Generated by CoffeeScript 1.6.2 | ||
} | ||
payload.field = this; | ||
if (this.options.methods && !~this.options.methods.indexOf(payload.method)) { | ||
return next(); | ||
} | ||
if (!this.options.fetch) { | ||
if (this.options.fetch) { | ||
return this.options.fetch(payload, next); | ||
} else if (this._refVirtual() && payload.model.get(this.property)) { | ||
return payload.model.get(this.property).fetch(next); | ||
} else { | ||
return next(); | ||
} | ||
payload.field = this; | ||
return this.options.fetch(payload, next); | ||
}; | ||
@@ -105,0 +108,0 @@ |
{ | ||
"name": "linen", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "```javascript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
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
71899
1682