Permalink
Browse files

Fix global leaks

  • Loading branch information...
1 parent 7c89eb2 commit 318ad60192a88163395d674b67f2667808c3586b @mikepb mikepb committed Dec 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/base32.js
View
@@ -164,14 +164,14 @@ Decoder.prototype.update = function(input, flush) {
// String of data goes in, Base32-encoded string comes out.
function encode(input) {
- encoder = new Encoder()
+ var encoder = new Encoder()
var output = encoder.update(input, true)
return output
}
// Base32-encoded string goes in, decoded data comes out.
function decode(input) {
- decoder = new Decoder()
+ var decoder = new Decoder()
var output = decoder.update(input, true)
return output
}

0 comments on commit 318ad60

Please sign in to comment.