Permalink
Browse files

Don't leak base64EncodeChars and base64DecodeChars into global scope

  • Loading branch information...
1 parent 0252825 commit 2dd462d92f62b0ac9cf00f9c24149eabdbe32da5 @ctavan ctavan committed Oct 28, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/dep/base64.js
View
@@ -1,5 +1,8 @@
/* adapted by Jed Schmidt for use as a node.js module */
+var base64EncodeChars;
+var base64DecodeChars;
+
this.encode = base64encode;
this.decode = base64decode;
this.chars = function( string ) {
@@ -107,4 +110,4 @@ function base64decode( str ) {
out += String.fromCharCode(((c3 & 0x03) << 6) | c4);
}
return out;
-}
+}

0 comments on commit 2dd462d

Please sign in to comment.