Applied JSCS and added JSCS/jsHint config files

This commit is contained in:
Erik Ziegler committed 2016-01-11 11:32:20 +01:00
1 parent a9266608d2
commit 90a16a8059
68 files changed
+24956 -6399

No files matched your search

+22 -22
View File
@@ -1,31 +1,31 @@
DICOMWeb.getJSON = function(url, options) {
var getOptions = {
headers: {
'Accept' : 'application/json'
var getOptions = {
headers: {
Accept: 'application/json'
},
};
};
if (options.auth) {
getOptions.auth = options.auth;
}
if (options.auth) {
getOptions.auth = options.auth;
}
if (options.logRequests) {
console.log(url);
}
if (options.logRequests) {
console.log(url);
}
if (options.logTiming) {
console.time(url);
}
if (options.logTiming) {
console.time(url);
}
var result = HTTP.get(url, getOptions);
var result = HTTP.get(url, getOptions);
if (options.logTiming) {
console.timeEnd(url);
}
if (options.logTiming) {
console.timeEnd(url);
}
if (options.logResponses) {
console.log(result.data);
}
if (options.logResponses) {
console.log(result.data);
}
return result;
};
return result;
};