Classes don't have args

This commit is contained in:
Matt Pass
2019-10-05 19:51:23 +01:00
committed by GitHub
parent 6ab5aa672d
commit 1c2b83e7ac

View File

@@ -767,8 +767,8 @@ var ICEcoder = {
}
},
// Show Function & class params tooltip
functionClassParamsTooltip: function(e, area) {
// Show function args tooltip
functionArgsTooltip: function(e, area) {
if (top.ICEcoder.indexData) {
// If we have no files open, return early
if (top.ICEcoder.openFiles.length === 0) {
@@ -788,7 +788,7 @@ var ICEcoder = {
return true;
}
// Get result and number of results for word in functions and classes from index JSON object list
// Get result and number of results for word in functions from index JSON object list
var result = null;
var numResults = 0;
var filePath = top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1];
@@ -799,12 +799,6 @@ var ICEcoder = {
numResults++;
}
};
for(i in top.ICEcoder.indexData.classes[filePathExt]) {
if (i === word) {
result = top.ICEcoder.indexData.classes[filePathExt][i];
numResults++;
}
};
// If we have a single result and the mouse pointer is not over the definition of it (that would be pointless), show tooltip
if (numResults === 1 && [null,"def"].indexOf(cM.getTokenTypeAt(coordsChar)) === -1) {