Merge 9c2238dad9 into daaefc17b9
This commit is contained in:
commit
a625481ed7
|
|
@ -539,7 +539,11 @@ var base54 = (function() {
|
|||
var chars, frequency;
|
||||
function reset() {
|
||||
frequency = Object.create(null);
|
||||
chars = string.split("").map(function(ch){ return ch.charCodeAt(0) });
|
||||
var length = string.length;
|
||||
chars = [];
|
||||
for(var i=0;i<length;i++){
|
||||
chars.push(string.charCodeAt(i));
|
||||
}
|
||||
chars.forEach(function(ch){ frequency[ch] = 0 });
|
||||
}
|
||||
base54.consider = function(str){
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user