cleanup jslint warnings

This commit is contained in:
Erik Tierney committed 2013-04-15 09:43:37 -04:00
1 parent 3eee0bef6f
commit d96d73d895
6 files changed
+208 -203

No files matched your search

@@ -234,7 +234,8 @@ define(function (require, exports, module) {
* @return {number} the index of the hint corresponding to the hintSelection
*/
function findHint(hintList, hintSelection) {
for (var i = 0, l = hintList.length; i < l; ++i) {
var i, l;
for (i = 0, l = hintList.length; i < l; ++i) {
var current = hintList[i].data("token");
if (hintSelection === current.value) {
return i;
@@ -321,7 +322,7 @@ define(function (require, exports, module) {
var hintObj = expectHints(JSCodeHints.jsHintProvider);
hintsPresent(hintObj, ["alert", "console", "confirm", "navigator", "window", "frames"]);
});
*/
*/
it("should NOT list implicitly defined globals from missing JSLint annotations", function () {
testEditor.setCursorPos({ line: 6, ch: 0 });
var hintObj = expectHints(JSCodeHints.jsHintProvider);
@@ -375,7 +376,7 @@ define(function (require, exports, module) {
var hintObj = expectHints(JSCodeHints.jsHintProvider);
hintsPresent(hintObj, ["use strict"]);
});
*/
*/
it("should NOT list string literals from other files", function () {
testEditor.setCursorPos({ line: 6, ch: 0 });
var hintObj = expectHints(JSCodeHints.jsHintProvider);