mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Immediate invoking or on interval instead
This commit is contained in:
@@ -542,13 +542,19 @@ var ICEcoder = {
|
||||
}
|
||||
// Update the list of functions and classes
|
||||
top.ICEcoder.updateFunctionClassList();
|
||||
// Update the minimap nav after 1 sec of inactivity
|
||||
// Update the minimap nav
|
||||
if ("undefined" != typeof top.doMiniNav) {
|
||||
clearTimeout(top.doMiniNav);
|
||||
}
|
||||
top.doMiniNav = setTimeout(function() {
|
||||
if (top.ICEcoder.loadingFile) {
|
||||
// Load event means set it straight away
|
||||
top.ICEcoder.setMinimap();
|
||||
},top.ICEcoder.loadingFile ? 0 : 1000);
|
||||
} else {
|
||||
// Update event means do it after 1 sec of inactivity
|
||||
top.doMiniNav = setTimeout(function() {
|
||||
top.ICEcoder.setMinimap();
|
||||
},1000);
|
||||
}
|
||||
filepath = top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1];
|
||||
if (filepath) {
|
||||
filename = filepath.substr(filepath.lastIndexOf("/")+1);
|
||||
|
||||
Reference in New Issue
Block a user