Remove window.rhymix_debug_pending_data

This commit is contained in:
Kijin Sung 2025-05-21 13:58:39 +09:00
parent a778c46afa
commit 3d64c26232
2 changed files with 5 additions and 7 deletions

View file

@ -13,6 +13,7 @@ const Rhymix = {
addedDocument: [],
loadedPopupMenus: [],
openWindowList: {},
pendingDebugData: [],
showAjaxErrors: ['ALL'],
unloading: false,
modal: {}
@ -470,7 +471,7 @@ Rhymix.ajaxSuccessHandler = function(xhr, textStatus, action, data, params, succ
if (window.rhymix_debug_add_data) {
window.rhymix_debug_add_data(data._rx_debug);
} 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
const XE = Rhymix;
// Other global variables
window.rhymix_debug_pending_data = [];
/**
* ============================
* Document ready event handler

View file

@ -244,9 +244,9 @@ $(function() {
}
// Add debug data from pending AJAX requests.
if (window.rhymix_debug_pending_data) {
while (window.rhymix_debug_pending_data.length) {
rhymix_debug_add_data(window.rhymix_debug_pending_data.shift());
if (Rhymix.pendingDebugData) {
while (Rhymix.pendingDebugData.length) {
rhymix_debug_add_data(Rhymix.pendingDebugData.shift());
}
}
});