mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-13 20:07:09 +01:00
Classes don't have args
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user