diff --git a/docs/files.html b/docs/files.html
index f6c1b34..abfd7f0 100755
--- a/docs/files.html
+++ b/docs/files.html
@@ -1 +1 @@
-
JsDoc Reference - File Indexget(string, object, function, function) post(string, object, function, function) live(string, string, function) «
File Index
core.js../kis-js/src/modules/old_event.js
ajax.js../kis-js/src/modules/old_event.js
DOM.js../kis-js/src/modules/old_event.js
event.js../kis-js/src/modules/old_event.js
store.js../kis-js/src/modules/old_event.js
util.js../kis-js/src/modules/old_event.js
\ No newline at end of file
+JsDoc Reference - File Indexget(string, object, function, function) post(string, object, function, function) live(string, string, function) «
File Index
core.js../kis-js/src/modules/event.js
ajax.js../kis-js/src/modules/event.js
DOM.js../kis-js/src/modules/event.js
util.js../kis-js/src/modules/event.js
\ No newline at end of file
diff --git a/docs/symbols/src/kis-js_src_modules_ajax.js.html b/docs/symbols/src/kis-js_src_modules_ajax.js.html
index a0a8e26..527ea5b 100755
--- a/docs/symbols/src/kis-js_src_modules_ajax.js.html
+++ b/docs/symbols/src/kis-js_src_modules_ajax.js.html
@@ -35,122 +35,127 @@
28 }
29
30 type = (isPost) ? "POST" : "GET";
- 31
- 32 url += (type === "GET") ? "?" + this._serialize(data) : '';
- 33
- 34 request.open(type, url);
- 35
- 36 request.onreadystatechange = function ()
- 37 {
- 38 if (request.readyState === 4)
- 39 {
- 40 if (request.status === 200)
- 41 {
- 42 success_callback.call(request.responseText, request.responseText);
- 43 }
- 44 else
- 45 {
- 46 if (typeof error_callback !== 'undefined')
- 47 {
- 48 error_callback.call(request.status, request.status);
- 49 }
- 50 }
- 51
- 52 }
- 53 };
- 54
- 55 if (type === "POST")
- 56 {
- 57 request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- 58 request.send(this._serialize(data));
- 59 }
- 60 else
+ 31
+ 32 if (type === "GET")
+ 33 {
+ 34 url += ( ! url.match('?'))
+ 35 ? "?" + this._serialize(data)
+ 36 : this._serialize(data);
+ 37 }
+ 38
+ 39 request.open(type, url);
+ 40
+ 41 request.onreadystatechange = function ()
+ 42 {
+ 43 if (request.readyState === 4)
+ 44 {
+ 45 if (request.status === 200)
+ 46 {
+ 47 success_callback.call(request.responseText, request.responseText);
+ 48 }
+ 49 else
+ 50 {
+ 51 if (typeof error_callback !== 'undefined')
+ 52 {
+ 53 error_callback.call(request.status, request.status);
+ 54 }
+ 55 }
+ 56
+ 57 }
+ 58 };
+ 59
+ 60 if (type === "POST")
61 {
- 62 request.send(null);
- 63 }
- 64 },
- 65 _serialize: function (data)
- 66 {
- 67 var name,
- 68 value,
- 69 pairs = [];
- 70
- 71 for (name in data)
- 72 {
- 73 if (!data.hasOwnProperty(name))
- 74 {
- 75 continue;
- 76 }
- 77 if (typeof data[name] === "function")
- 78 {
- 79 continue;
- 80 }
- 81
- 82 value = data[name].toString();
- 83
- 84 name = encodeURIComponent(name);
- 85 value = encodeURIComponent(value);
+ 62 request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+ 63 request.send(this._serialize(data));
+ 64 }
+ 65 else
+ 66 {
+ 67 request.send(null);
+ 68 }
+ 69 },
+ 70 _serialize: function (data)
+ 71 {
+ 72 var name,
+ 73 value,
+ 74 pairs = [];
+ 75
+ 76 for (name in data)
+ 77 {
+ 78 if (!data.hasOwnProperty(name))
+ 79 {
+ 80 continue;
+ 81 }
+ 82 if (typeof data[name] === "function")
+ 83 {
+ 84 continue;
+ 85 }
86
- 87 pairs.push(name + "=" + value);
- 88 }
- 89
- 90 return pairs.join("&");
- 91 }
- 92 };
- 93
- 94 /**
- 95 * Sends a GET type ajax request
- 96 *
- 97 * @name get
- 98 * @function
- 99 * @memberOf $_
-100 * @param string url
-101 * @param object data
-102 * @param function success_callback
-103 * @param function error_callback
-104 */
-105 $_.ext('get', function (url, data, success_callback, error_callback){
-106 ajax._do(url, data, success_callback, error_callback, false);
-107 });
-108
-109 /**
-110 * Sends a POST type ajax request
-111 *
-112 * @name post
-113 * @function
-114 * @memberOf $_
-115 * @param string url
-116 * @param object data
-117 * @param function success_callback
-118 * @param function error_callback
-119 */
-120 $_.ext('post', function (url, data, success_callback, error_callback){
-121 ajax._do(url, data, success_callback, error_callback, true);
-122 });
-123
-124 /**
-125 * Watches for server-sent events and applies a callback on message
-126 *
-127 * @name sse
-128 * @function
-129 * @memberOf $_
-130 * @param string url
-131 * @param function callback
-132 */
-133 $_.ext('sse', function(url, callback){
-134
-135 var source;
-136
-137 // Check for server-sent event support
-138 if (typeof EventSource !== 'undefined')
-139 {
-140 source = new EventSource(url);
+ 87 value = data[name].toString();
+ 88
+ 89 name = encodeURIComponent(name);
+ 90 value = encodeURIComponent(value);
+ 91
+ 92 pairs.push(name + "=" + value);
+ 93 }
+ 94
+ 95 return pairs.join("&");
+ 96 }
+ 97 };
+ 98
+ 99 /**
+100 * Sends a GET type ajax request
+101 *
+102 * @name get
+103 * @function
+104 * @memberOf $_
+105 * @param string url
+106 * @param object data
+107 * @param function success_callback
+108 * @param function error_callback
+109 */
+110 $_.ext('get', function (url, data, success_callback, error_callback){
+111 ajax._do(url, data, success_callback, error_callback, false);
+112 });
+113
+114 /**
+115 * Sends a POST type ajax request
+116 *
+117 * @name post
+118 * @function
+119 * @memberOf $_
+120 * @param string url
+121 * @param object data
+122 * @param function success_callback
+123 * @param function error_callback
+124 */
+125 $_.ext('post', function (url, data, success_callback, error_callback){
+126 ajax._do(url, data, success_callback, error_callback, true);
+127 });
+128
+129 /**
+130 * Watches for server-sent events and applies a callback on message
+131 *
+132 * @name sse
+133 * @function
+134 * @memberOf $_
+135 * @param string url
+136 * @param function callback
+137 */
+138 $_.ext('sse', function(url, callback){
+139
+140 var source;
141
-142 // Apply the callback
-143 source.onmessage = function(event){
-144 callback.call(event.data, event.data);
-145 };
-146 }
-147 });
-148
-149 }());