diff --git a/lib/ice-coder.js b/lib/ice-coder.js index d9b8b48..56c6a9f 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -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) {