coffeescript compiled swagger.js for #91

This commit is contained in:
Ayush Gupta
2012-11-20 14:36:16 +05:30
parent 2bc67cbcae
commit a1337cf118

View File

@@ -562,7 +562,7 @@
};
SwaggerOperation.prototype.urlify = function(args, includeApiKey) {
var param, queryParams, url, _i, _len, _ref;
var param, queryParams, reg, url, _i, _len, _ref;
if (includeApiKey == null) {
includeApiKey = true;
}
@@ -572,7 +572,7 @@
param = _ref[_i];
if (param.paramType === 'path') {
if (args[param.name]) {
reg = new RegExp('\{'+param.name+'[^\}]*\}', 'gi');
reg = new RegExp('\{' + param.name + '[^\}]*\}', 'gi');
url = url.replace(reg, encodeURIComponent(args[param.name]));
delete args[param.name];
} else {