mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Fix typo
This commit is contained in:
parent
f5d55e039d
commit
8f83c91aaa
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class Locations {
|
||||||
var completed = new defer();
|
var completed = new defer();
|
||||||
var locations = this.parseWords(contents, section, wordCount, startCfi);
|
var locations = this.parseWords(contents, section, wordCount, startCfi);
|
||||||
var remainingCount = count - this._locationsWords.length;
|
var remainingCount = count - this._locationsWords.length;
|
||||||
this._locationsWords = this._locationsWords.concat(locations.length <= count ? locations.slice(0, remainingCount) : locations);
|
this._locationsWords = this._locationsWords.concat(locations.length >= count ? locations.slice(0, remainingCount) : locations);
|
||||||
|
|
||||||
section.unload();
|
section.unload();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue