From c0bbfffc16ec7962b041d47eb6d136148e94bac7 Mon Sep 17 00:00:00 2001 From: Van Date: Thu, 4 Dec 2014 15:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=A1=A5=E5=85=A8=E4=B8=BA?= =?UTF-8?q?=20fun=20=20=E6=97=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=20=EF=BC=88?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/editors.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/static/js/editors.js b/static/js/editors.js index fc99b05..7f561c1 100644 --- a/static/js/editors.js +++ b/static/js/editors.js @@ -339,7 +339,8 @@ var editors = { if (autocompleteArray) { for (var i = 0; i < autocompleteArray.length; i++) { - var displayText = ''; + var displayText = '', + text = autocompleteArray[i].name; switch (autocompleteArray[i].class) { case "type": @@ -349,23 +350,21 @@ var editors = { displayText = ''// + autocompleteArray[i].class + '' + autocompleteArray[i].name + ' ' + autocompleteArray[i].type + ''; - break; case "func": displayText = ''// + autocompleteArray[i].class + '' + autocompleteArray[i].name + '' + autocompleteArray[i].type.substring(4) + ''; - + text += '()'; break; default: console.warn("Can't handle autocomplete [" + autocompleteArray[i].class + "]"); - break; } autocompleteHints[i] = { displayText: displayText, - text: autocompleteArray[i].name + text: text }; } }