1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

correct documentation for compare method, which confuses which situation returns 1 / -1.

This commit is contained in:
viking2917 2018-10-04 10:07:23 -10:00
parent 7fd362bb82
commit 9c2ebacb83

View file

@ -1451,7 +1451,7 @@ Compare which of two CFIs is earlier in the text
- `cfiOne`
- `cfiTwo`
Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** First is earlier = 1, Second is earlier = -1, They are equal = 0
Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** First is earlier = -1, Second is earlier = 1, They are equal = 0
### fromRange