Commit cb9ff3fa by Thimo Kraemer

async -> isAsync

parent 06f62eec
......@@ -851,9 +851,9 @@ kss.POST = function(url, data, timeout, headers, callback) {
};
kss.SEND = function(method, url, data, timeout, headers, callback) {
var async = !!callback, contentType;
var isAsync = !!callback, contentType;
var xhr = new XMLHttpRequest();
xhr.open(method, url, async);
xhr.open(method, url, isAsync);
if (!headers) {
headers = {};
}
......@@ -880,7 +880,7 @@ kss.SEND = function(method, url, data, timeout, headers, callback) {
}
}
var timer;
if (async) {
if (isAsync) {
xhr.timeout = timeout;
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment