summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/codeq/hint.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js
index 5b2f66e..1d0ff09 100644
--- a/js/codeq/hint.js
+++ b/js/codeq/hint.js
@@ -180,7 +180,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
},
typeHandlers = {
- 'static': function (type, template, serverHint, hintId) {
+ 'static': function (template, serverHint, hintId) {
var content = prepareStaticHintContent(template, serverHint.indices, hintId),
args = serverHint ? serverHint.args : null,
hintIndex = 0,
@@ -254,7 +254,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
// no hint cleaner here, a static hint remains on the screen
},
- 'popup': function (type, template, serverHint) {
+ 'popup': function (template, serverHint) {
codeq.log.debug('Processing popup hint');
var args = serverHint.args,
style = serverHint.style || '',
@@ -271,7 +271,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
translations[lang] = codeq.template.process(content, templatePath, args);
}
else {
- translations[lang] = 'No translation in ' + lang + ' available for ' + type + ' hint ' + serverHint.id;
+ translations[lang] = 'No translation in ' + lang + ' available for popup hint ' + serverHint.id;
codeq.log.error(translations[lang]);
}
}
@@ -297,7 +297,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
return instFunc;
},
- 'dropdown': function (type, template, serverHint) {
+ 'dropdown': function (template, serverHint) {
codeq.log.debug('Processing dropdown hint');
var completion = null, // the completion object, created in showHint()
close = function () {
@@ -349,7 +349,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
*/
'planNext': function () {
if (planIdx < planDef.length) {
- typeHandlers.static('static', planDef[planIdx], {}, 'plan');
+ typeHandlers['static'](planDef[planIdx], {}, 'plan');
planIdx++;
}
return planIdx < planDef.length;
@@ -397,7 +397,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
fn = typeHandlers[hintType];
if (!fn) codeq.log.error('Unsupported hint type: ' + hintType);
else {
- ret = fn(hintType, hintContent, serverHint, hintId);
+ ret = fn(hintContent, serverHint, hintId);
if (typeof ret === 'function') finalizers.push(ret);
}
}