This commit is contained in:
Tony Tam
2014-02-03 16:20:07 -08:00
parent 2378b176f5
commit 53593b796e
2 changed files with 8 additions and 4 deletions

2
dist/lib/swagger.js vendored
View File

@@ -533,7 +533,7 @@
_ref1 = this.properties;
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
prop = _ref1[_j];
if ((prop.refModel != null) && (modelsToIgnore[prop.refModel] !== 'undefined') === -1) {
if ((prop.refModel != null) && modelsToIgnore.indexOf(prop.refModel) === -1) {
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
}
}

View File

@@ -53,7 +53,9 @@
useJQuery: this.useJQuery,
url: this.url,
method: "get",
headers: {},
headers: {
accept: "application/json"
},
on: {
error: function(response) {
if (_this.url.substring(0, 4) !== 'http') {
@@ -304,7 +306,9 @@
url: this.url,
method: "get",
useJQuery: this.useJQuery,
headers: {},
headers: {
accept: "application/json"
},
on: {
error: function(response) {
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");
@@ -529,7 +533,7 @@
_ref1 = this.properties;
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
prop = _ref1[_j];
if ((prop.refModel != null) && (modelsToIgnore[prop.refModel] !== 'undefined') === -1) {
if ((prop.refModel != null) && modelsToIgnore.indexOf(prop.refModel) === -1) {
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
}
}