mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
another refactor for global variables, bugfixes for logging tab initialization in strict mode
This commit is contained in:
parent
f3ea5757f7
commit
b77ed6b174
15 changed files with 66 additions and 70 deletions
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
tabs.sensors = {};
|
||||
tabs.sensors.initialize = function(callback) {
|
||||
TABS.sensors = {};
|
||||
TABS.sensors.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'sensors';
|
||||
googleAnalytics.sendAppView('Sensor Page');
|
||||
|
@ -414,12 +414,8 @@ tabs.sensors.initialize = function(callback) {
|
|||
});
|
||||
};
|
||||
|
||||
tabs.sensors.cleanup = function(callback) {
|
||||
TABS.sensors.cleanup = function(callback) {
|
||||
serial.empty_output_buffer();
|
||||
|
||||
// sensor data tab uses scrollbars, emptying the content before loading another tab
|
||||
// prevents scrollbar exposure to any of the tabs while new content is loaded in
|
||||
$('#content').empty();
|
||||
|
||||
if (callback) callback();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue