diff --git a/libs/lz-string.js b/libs/lz-string.js index de663ae..421dd09 100644 --- a/libs/lz-string.js +++ b/libs/lz-string.js @@ -13,16 +13,16 @@ var LZString = (function() { var f = String.fromCharCode; var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$"; -var baseReverseDic = {}; +var baseReverseDic = new Map(); function getBaseValue(alphabet, character) { - if (!baseReverseDic[alphabet]) { - baseReverseDic[alphabet] = {}; + if (!baseReverseDic.has(alphabet)) { + baseReverseDic.set(alphabet, new Map()); for (var i=0 ; i