Browse Source

Fix error callback

Volodymyr Tkach 2 years ago
parent
commit
ebd6cc913b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/ajax.js

+ 2 - 2
js/ajax.js

@@ -65,8 +65,8 @@ ajax.getJSON = function(url, data, callbackSuccess, callbackError, async) {
 						callbackSuccess(method, data, readyState, status, r);
 						callbackSuccess(method, data, readyState, status, r);
 					};
 					};
 				} catch(e) {
 				} catch(e) {
-					if(error) {
-						error(method, data, readyState, status, e);
+					if(callbackError) {
+						callbackError(method, data, readyState, status, e);
 					};
 					};
 				};
 				};
 			} else {
 			} else {