Skip to content
Browse files

Fix loop variable init error that made Chrome and FF4 barf.

Remove a stray console.log from the converter.
  • Loading branch information...
1 parent 8a8c4ed commit dfff8705242368d5f11f083fb81cf4bc1cf37730 @cortesi committed Mar 2, 2011
Showing with 1 addition and 2 deletions.
  1. +0 −1 libcrypclient/components/converter.js
  2. +1 −1 libcrypclient/components/pad.js
View
1 libcrypclient/components/converter.js
@@ -72,7 +72,6 @@ function upload(){
]
}
var ciphertext = encrypt(data);
- console.log(ciphertext);
$.ajax({
type: "POST",
url: domain + "_save",
View
2 libcrypclient/components/pad.js
@@ -174,7 +174,7 @@ function genkey(){
var key = "";
var length = Math.ceil(128/char_entropy);
var words = sjcl.random.randomWords(length);
- for (i=0; i < length; i++){
+ for (var i=0; i < length; i++){
/* Chop the most significant byte to make it more convenient to work
* with */
var offset = words[i]&0x0fffffff;

0 comments on commit dfff870

Please sign in to comment.
Something went wrong with that request. Please try again.