mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 08:44:02 +01:00
Handle 0 files open for tooltip
This commit is contained in:
@@ -728,6 +728,12 @@ var ICEcoder = {
|
||||
// Show Function & class params tooltip
|
||||
functionClassParamsTooltip: function(e, area) {
|
||||
if (top.ICEcoder.indexData) {
|
||||
// If we have no files open, return early
|
||||
if (top.ICEcoder.openFiles.length === 0) {
|
||||
get('tooltip').style.display = "none";
|
||||
return true;
|
||||
}
|
||||
|
||||
var i;
|
||||
// Get cM instance, and the word under mouse pointer
|
||||
var cM = top.ICEcoder.getcMInstance();
|
||||
|
||||
Reference in New Issue
Block a user