substr() takes a length, not an offset. Fixes #275
This commit is contained in:
parent
70bb6a006a
commit
9a0e97583d
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ define(function() {
|
|||
} else {
|
||||
var chunks = [];
|
||||
for (var i = 0; i < data.length; i += 3000) {
|
||||
chunks.push(data.substr(i, i + 3000));
|
||||
chunks.push(data.substr(i, 3000));
|
||||
}
|
||||
var hash = {};
|
||||
hash[key] = chunks.length;
|
||||
|
|
Loading…
Reference in a new issue