Skip to content

Commit

Permalink
Removed unnecessary console.logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWang committed Aug 7, 2011
1 parent fc9948c commit d7163ef
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions lib/nowUtil.js
Expand Up @@ -29,24 +29,20 @@ var util = {
return {};
}
var jsonCookie = {};
var index;
var m;
var m, end, index;
for (var i = 0; i < match.length; i++) {
m = match[i];
index = match[i].indexOf('=');

index = m.indexOf('=');
end = m.lastIndexOf(';');
if (index === -1) {
jsonCookie[m.substr(index + 1,
m.lastIndexOf(';') + 1 ?
m.lastIndexOf(';') - index - 1:
end + 1 ?
end - index - 1:
undefined)] = true;
} else {
console.log(m);
console.log(m.lastIndexOf(';'));
console.log(m.substr(0, m.lastIndexOf(';')));
jsonCookie[m.substr(0, index)] = m.substr(index + 1,
(m.lastIndexOf(';') + 1 ?
m.lastIndexOf(';') - index - 1 :
(end + 1 ?
end - index - 1 :
undefined));
}
}
Expand Down

0 comments on commit d7163ef

Please sign in to comment.