mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
use .value instead of .label to reduce confusion
This commit is contained in:
1 parent
ab0b3728a1
commit
3eee0bef6f
3 files changed
+9
-8
No files matched your search
@@ -111,7 +111,7 @@ define(function (require, exports, module) {
|
||||
counter = 0;
|
||||
|
||||
for (counter; counter < hintList.length; counter++) {
|
||||
if (hintList[counter].data("token").label === hint) {
|
||||
if (hintList[counter].data("token").value === hint) {
|
||||
index = counter;
|
||||
break;
|
||||
}
|
||||
@@ -221,7 +221,7 @@ define(function (require, exports, module) {
|
||||
_waitForHints(hintObj, function (hintList) {
|
||||
expect(hintList).not.toBeNull();
|
||||
expectedHints.forEach(function (expectedHint, index) {
|
||||
expect(hintList[index].data("token").label).toBe(expectedHint);
|
||||
expect(hintList[index].data("token").value).toBe(expectedHint);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -236,7 +236,7 @@ define(function (require, exports, module) {
|
||||
function findHint(hintList, hintSelection) {
|
||||
for (var i = 0, l = hintList.length; i < l; ++i) {
|
||||
var current = hintList[i].data("token");
|
||||
if (hintSelection === current.label) {
|
||||
if (hintSelection === current.value) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user