Isolate DOM references in load() and connect().

- Other misc cleanups.
This commit is contained in:
Joel Martin
2010-05-11 16:39:17 -05:00
parent ded9dfae10
commit db504ade0c
3 changed files with 36 additions and 24 deletions

View File

@@ -131,7 +131,8 @@ decode: function (data, offset) {
// If there are any bits left, the base64 string was corrupted
if (leftbits)
throw Components.Exception('Corrupted base64 string');
throw {name: 'Base64-Error',
message: 'Corrupted base64 string'};
return result;
}

View File

@@ -233,7 +233,6 @@ DES = {
DES.deskey(key, true, DES.encryptKeys);
DES.deskey(key, false, DES.decryptKeys);
console.log("DES.encryptKeys: " + DES.encryptKeys);
},
// Turn an 8-byte key into internal keys.