Permalink
Browse files

Make cookieUtil and lightGate comply to JSLint

  • Loading branch information...
robyoung committed Mar 11, 2013
1 parent a7fbf59 commit 7358ce15401234209f51b76facfefcece83ce8ed
Showing with 5 additions and 3 deletions.
  1. +1 −0 script/cookieUtils.js
  2. +4 −3 script/lightGate.js
View
@@ -1,4 +1,5 @@
/*global document:true*/
+/*global GOVUK: true*/
/*jslint indent: 2 */
GOVUK.performance.addToNamespace("cookieUtils", (function () {
View
@@ -1,4 +1,5 @@
-/*global cookieUtils:true, document:true*/
+/*global document:true*/
+/*global GOVUK: true*/
/*jslint indent: 2 */
GOVUK.performance.addToNamespace("lightGate", (function () {
@@ -31,7 +32,7 @@ GOVUK.performance.addToNamespace("lightGate", (function () {
eventsForInterestingPages[stageDescription.bodyId] = stageDescription.eventObject;
return this;
- }
+ };
cookieName = function (name) {
@@ -97,7 +98,7 @@ GOVUK.performance.addToNamespace("lightGate", (function () {
privateMethods.sendEvent(endingEvent);
}
- for (i = 0; i < interestingIds.length; i++) {
+ for (i = 0; i < interestingIds.length; (i += 1)) {
if (id === interestingIds[i]) {
privateMethods.sendEvent(eventsForInterestingPages[interestingIds[i]]);
}

0 comments on commit 7358ce1

Please sign in to comment.