Consoliate all debug-related variables under the Rhymix object

This commit is contained in:
Kijin Sung 2025-05-21 14:07:34 +09:00
parent 3d64c26232
commit 0f554c6d51
4 changed files with 15 additions and 14 deletions

View file

@ -13,6 +13,7 @@ const Rhymix = {
addedDocument: [],
loadedPopupMenus: [],
openWindowList: {},
currentDebugData: null,
pendingDebugData: [],
showAjaxErrors: ['ALL'],
unloading: false,
@ -468,8 +469,8 @@ Rhymix.ajaxSuccessHandler = function(xhr, textStatus, action, data, params, succ
// Add debug information.
if (data._rx_debug) {
data._rx_debug.page_title = "AJAX : " + action;
if (window.rhymix_debug_add_data) {
window.rhymix_debug_add_data(data._rx_debug);
if (this.addDebugData) {
this.addDebugData(data._rx_debug);
} else {
this.pendingDebugData.push(data._rx_debug);
}