Skip to content

Commit

Permalink
Remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
NV committed Dec 30, 2011
1 parent 3443d9c commit 01b8788
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/parse.js
Expand Up @@ -31,7 +31,6 @@ CSSOM.parse = function parse(token) {
var state = "before-selector";

var index;
var j = i;
var buffer = "";

var SIGNIFICANT_WHITESPACE = {
Expand Down Expand Up @@ -66,8 +65,7 @@ CSSOM.parse = function parse(token) {

// String
case '"':
j = i + 1;
index = token.indexOf('"', j) + 1;
index = token.indexOf('"', i + 1) + 1;
if (!index) {
throw '" is missing';
}
Expand All @@ -84,8 +82,7 @@ CSSOM.parse = function parse(token) {
break;

case "'":
j = i + 1;
index = token.indexOf("'", j) + 1;
index = token.indexOf("'", i + 1) + 1;
if (!index) {
throw "' is missing";
}
Expand Down

0 comments on commit 01b8788

Please sign in to comment.