mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Remove window.rhymix_debug_pending_data
This commit is contained in:
parent
a778c46afa
commit
3d64c26232
2 changed files with 5 additions and 7 deletions
|
|
@ -13,6 +13,7 @@ const Rhymix = {
|
||||||
addedDocument: [],
|
addedDocument: [],
|
||||||
loadedPopupMenus: [],
|
loadedPopupMenus: [],
|
||||||
openWindowList: {},
|
openWindowList: {},
|
||||||
|
pendingDebugData: [],
|
||||||
showAjaxErrors: ['ALL'],
|
showAjaxErrors: ['ALL'],
|
||||||
unloading: false,
|
unloading: false,
|
||||||
modal: {}
|
modal: {}
|
||||||
|
|
@ -470,7 +471,7 @@ Rhymix.ajaxSuccessHandler = function(xhr, textStatus, action, data, params, succ
|
||||||
if (window.rhymix_debug_add_data) {
|
if (window.rhymix_debug_add_data) {
|
||||||
window.rhymix_debug_add_data(data._rx_debug);
|
window.rhymix_debug_add_data(data._rx_debug);
|
||||||
} else {
|
} else {
|
||||||
window.rhymix_debug_pending_data.push(data._rx_debug);
|
this.pendingDebugData.push(data._rx_debug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -750,9 +751,6 @@ Rhymix.IPv6 = window.IPv6;
|
||||||
// Alias to XE for backward compatibility
|
// Alias to XE for backward compatibility
|
||||||
const XE = Rhymix;
|
const XE = Rhymix;
|
||||||
|
|
||||||
// Other global variables
|
|
||||||
window.rhymix_debug_pending_data = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ============================
|
* ============================
|
||||||
* Document ready event handler
|
* Document ready event handler
|
||||||
|
|
|
||||||
|
|
@ -244,9 +244,9 @@ $(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add debug data from pending AJAX requests.
|
// Add debug data from pending AJAX requests.
|
||||||
if (window.rhymix_debug_pending_data) {
|
if (Rhymix.pendingDebugData) {
|
||||||
while (window.rhymix_debug_pending_data.length) {
|
while (Rhymix.pendingDebugData.length) {
|
||||||
rhymix_debug_add_data(window.rhymix_debug_pending_data.shift());
|
rhymix_debug_add_data(Rhymix.pendingDebugData.shift());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue