mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Consoliate all debug-related variables under the Rhymix object
This commit is contained in:
parent
3d64c26232
commit
0f554c6d51
4 changed files with 15 additions and 14 deletions
|
|
@ -40,7 +40,7 @@ $(function() {
|
|||
}));
|
||||
|
||||
// Define a function for adding debug data to the panel.
|
||||
window.rhymix_debug_add_data = function(data, open) {
|
||||
Rhymix.addDebugData = function(data, open) {
|
||||
|
||||
// Define loop variables.
|
||||
var i, j, entry, num, cnt, backtrace, description;
|
||||
|
|
@ -238,15 +238,15 @@ $(function() {
|
|||
};
|
||||
|
||||
// Add debug data from the current request.
|
||||
if (window.rhymix_debug_content) {
|
||||
window.rhymix_debug_content.page_title = 'MAIN PAGE';
|
||||
rhymix_debug_add_data(window.rhymix_debug_content, true);
|
||||
if (Rhymix.currentDebugData) {
|
||||
Rhymix.currentDebugData.page_title = 'MAIN PAGE';
|
||||
Rhymix.addDebugData(Rhymix.currentDebugData, true);
|
||||
}
|
||||
|
||||
// Add debug data from pending AJAX requests.
|
||||
if (Rhymix.pendingDebugData) {
|
||||
while (Rhymix.pendingDebugData.length) {
|
||||
rhymix_debug_add_data(Rhymix.pendingDebugData.shift());
|
||||
Rhymix.addDebugData(Rhymix.pendingDebugData.shift());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue