mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
moving to GUI integrated interval/timeout model
This commit is contained in:
parent
5e636b2920
commit
e7a02d0e21
10 changed files with 192 additions and 190 deletions
16
main.js
16
main.js
|
@ -7,19 +7,6 @@ chrome.runtime.getBackgroundPage(function(result) {
|
|||
backgroundPage.app_window = window;
|
||||
});
|
||||
|
||||
var timers = new Array();
|
||||
|
||||
function disable_timers() {
|
||||
for (var i = 0; i < timers.length; i++) {
|
||||
clearInterval(timers[i]);
|
||||
}
|
||||
|
||||
// kill all the refferences
|
||||
timers = [];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Google Analytics stuff begin
|
||||
var service = analytics.getService('ice_cream_app');
|
||||
var ga_tracker = service.getTracker('UA-32728876-6');
|
||||
|
@ -38,9 +25,6 @@ $(document).ready(function() {
|
|||
|
||||
var self = this;
|
||||
|
||||
// Disable any active "data pulling" timer
|
||||
disable_timers();
|
||||
|
||||
GUI.tab_switch_cleanup(function() {
|
||||
// disable previously active tab highlight
|
||||
$('li', tabs).removeClass('active');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue