Permalink
Browse files

Replace 'i++' with 'i += 1' in browser JS.

Made to keep the linter happy.
  • Loading branch information...
1 parent e0b5c37 commit 781d6cc739cc47e57122d1b459928f3d7ee0cb7e @reid committed May 15, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/hub/view/public/capture.js
  2. +1 −1 lib/hub/view/public/inject.js
@@ -9,7 +9,7 @@
i = 0,
l = parts.length;
name += "=";
- for (; i < l; i++) {
+ for (; i < l; i += 1) {
cookie = parts[i].replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1");
if (cookie.indexOf(name) === 0) {
return cookie.substring(name.length, cookie.length);
@@ -18,7 +18,7 @@
i = 0,
l = parts.length;
name += "=";
- for (; i < l; i++) {
+ for (; i < l; i += 1) {
cookie = parts[i].replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1");
if (cookie.indexOf(name) === 0) {
return cookie.substring(name.length, cookie.length);

0 comments on commit 781d6cc

Please sign in to comment.