[Bug 20257] IDBCursor should walk on secondary ordering of index value

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20257

--- Comment #9 from Kyaw Tun <kyawtun@yathit.com> ---
Polyfill may not worth it, in this case.

However, polyfill will be easy and efficient if the API is change to

cursor.continue(effective_key) 
cursor.continuePrimary(primary_key) 

For example:

curent position ("a", 2)

cursor.continuePrimary() => exception, key require
cursor.continuePrimary(3) => ("a", 3)
cursor.continuePrimary(4) => ("b", 1)
cursor.continue() => ("b", 2)
cursor.continuePrimary(3) => ("b", 3)
cursor.continuePrimary(5) => null

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 29 August 2013 01:15:50 UTC