mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Add underscores to some internal methods to mark them as private
This commit is contained in:
parent
e80b0d4570
commit
0501671271
1 changed files with 5 additions and 5 deletions
|
|
@ -462,10 +462,10 @@ Rhymix.ajax = function(action, params, success, error) {
|
||||||
processData: false,
|
processData: false,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
success: function(data, textStatus, xhr) {
|
success: function(data, textStatus, xhr) {
|
||||||
Rhymix.ajaxSuccessHandler(xhr, textStatus, action, data, params, success, error);
|
Rhymix._ajaxSuccessHandler(xhr, textStatus, action, data, params, success, error);
|
||||||
},
|
},
|
||||||
error: function(xhr, textStatus, errorThrown) {
|
error: function(xhr, textStatus, errorThrown) {
|
||||||
Rhymix.ajaxErrorHandler(xhr, textStatus, action, url, params, success, error);
|
Rhymix._ajaxErrorHandler(xhr, textStatus, action, url, params, success, error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -489,7 +489,7 @@ Rhymix.ajax = function(action, params, success, error) {
|
||||||
* @param function errror
|
* @param function errror
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
Rhymix.ajaxSuccessHandler = function(xhr, textStatus, action, data, params, success, error) {
|
Rhymix._ajaxSuccessHandler = function(xhr, textStatus, action, data, params, success, error) {
|
||||||
|
|
||||||
// Add debug information.
|
// Add debug information.
|
||||||
if (data._rx_debug) {
|
if (data._rx_debug) {
|
||||||
|
|
@ -556,7 +556,7 @@ Rhymix.ajaxSuccessHandler = function(xhr, textStatus, action, data, params, succ
|
||||||
* @param function errror
|
* @param function errror
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
Rhymix.ajaxErrorHandler = function(xhr, textStatus, action, url, params, success, error) {
|
Rhymix._ajaxErrorHandler = function(xhr, textStatus, action, url, params, success, error) {
|
||||||
|
|
||||||
// If the user is navigating away, don't do anything.
|
// If the user is navigating away, don't do anything.
|
||||||
if (xhr.status == 0 && this.unloading) {
|
if (xhr.status == 0 && this.unloading) {
|
||||||
|
|
@ -570,7 +570,7 @@ Rhymix.ajaxErrorHandler = function(xhr, textStatus, action, url, params, success
|
||||||
data = JSON.parse(xhr.responseText);
|
data = JSON.parse(xhr.responseText);
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
if (data && typeof data.error !== 'undefined') {
|
if (data && typeof data.error !== 'undefined') {
|
||||||
this.ajaxSuccessHandler(xhr, textStatus, action, data, params, success, error);
|
this._ajaxSuccessHandler(xhr, textStatus, action, data, params, success, error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue