updated library
This commit is contained in:
11
dist/lib/swagger-client.js
vendored
11
dist/lib/swagger-client.js
vendored
@@ -206,6 +206,8 @@ var SwaggerClient = function(url, options) {
|
|||||||
|
|
||||||
this.failure = options.failure != null ? options.failure : function() {};
|
this.failure = options.failure != null ? options.failure : function() {};
|
||||||
this.progress = options.progress != null ? options.progress : function() {};
|
this.progress = options.progress != null ? options.progress : function() {};
|
||||||
|
this.spec = options.spec;
|
||||||
|
|
||||||
if (options.success != null)
|
if (options.success != null)
|
||||||
this.build();
|
this.build();
|
||||||
}
|
}
|
||||||
@@ -247,9 +249,18 @@ SwaggerClient.prototype.build = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if(this.spec) {
|
||||||
|
var self = this;
|
||||||
|
setTimeout(function() {
|
||||||
|
self.buildFromSpec(self.spec);
|
||||||
|
}, 10);
|
||||||
|
}
|
||||||
|
else {
|
||||||
var e = (typeof window !== 'undefined' ? window : exports);
|
var e = (typeof window !== 'undefined' ? window : exports);
|
||||||
var status = e.authorizations.apply(obj);
|
var status = e.authorizations.apply(obj);
|
||||||
new SwaggerHttp().execute(obj);
|
new SwaggerHttp().execute(obj);
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -206,6 +206,8 @@ var SwaggerClient = function(url, options) {
|
|||||||
|
|
||||||
this.failure = options.failure != null ? options.failure : function() {};
|
this.failure = options.failure != null ? options.failure : function() {};
|
||||||
this.progress = options.progress != null ? options.progress : function() {};
|
this.progress = options.progress != null ? options.progress : function() {};
|
||||||
|
this.spec = options.spec;
|
||||||
|
|
||||||
if (options.success != null)
|
if (options.success != null)
|
||||||
this.build();
|
this.build();
|
||||||
}
|
}
|
||||||
@@ -247,9 +249,18 @@ SwaggerClient.prototype.build = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if(this.spec) {
|
||||||
|
var self = this;
|
||||||
|
setTimeout(function() {
|
||||||
|
self.buildFromSpec(self.spec);
|
||||||
|
}, 10);
|
||||||
|
}
|
||||||
|
else {
|
||||||
var e = (typeof window !== 'undefined' ? window : exports);
|
var e = (typeof window !== 'undefined' ? window : exports);
|
||||||
var status = e.authorizations.apply(obj);
|
var status = e.authorizations.apply(obj);
|
||||||
new SwaggerHttp().execute(obj);
|
new SwaggerHttp().execute(obj);
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user