use .value instead of .label to reduce confusion

This commit is contained in:
dloverin committed 2013-04-13 11:01:46 -04:00
1 parent ab0b3728a1
commit 3eee0bef6f
3 files changed
+9 -8

No files matched your search

@@ -125,7 +125,7 @@ define(function (require, exports, module) {
}
});
} else {
$hintObj.text(token.label);
$hintObj.text(token.value);
}
$hintObj.data("token", token);
@@ -278,7 +278,7 @@ define(function (require, exports, module) {
*/
JSHints.prototype.insertHint = function ($hintObj) {
var hint = $hintObj.data("token"),
completion = hint.label,
completion = hint.value,
cursor = session.getCursor(),
token = session.getToken(cursor),
query = session.getQuery(),