Re: IndexedDB Proposed API Change: cursor.advance BACKWARD when direction is prev

2014-05-27 Thread Joshua Bell
On Fri, May 23, 2014 at 6:24 PM, marc fawzi marc.fa...@gmail.com wrote: Here is a jsfiddle showing how .advance behaves when the range is restricted by .only Create new e.g. 7 items with names like marc and tags like w1 w3 w5 w2 (random selection of tags with some tags appearing across

Re: IndexedDB Proposed API Change: cursor.advance BACKWARD when direction is prev

2014-05-23 Thread marc fawzi
I thought .continue/advance was similar to the 'continue' statement in a for loop in that everything below the statement will be ignored and the loop would start again from the next index. So my console logging was giving confusing results. I figured it out and it works fine now. For sanity's

Re: IndexedDB Proposed API Change: cursor.advance BACKWARD when direction is prev

2014-05-23 Thread Joshua Bell
On Fri, May 23, 2014 at 9:40 AM, marc fawzi marc.fa...@gmail.com wrote: I thought .continue/advance was similar to the 'continue' statement in a for loop in that everything below the statement will be ignored and the loop would start again from the next index. So my console logging was giving

Re: IndexedDB Proposed API Change: cursor.advance BACKWARD when direction is prev

2014-05-23 Thread marc fawzi
Thanks for following up! At least two IDB implementers were worried that you'd found some browser bugs we couldn't reproduce. Yup. I had to figure this stuff out as the API is very low level (which is why it can also be used in very powerful ways and also potentially very confusing for the

IndexedDB Proposed API Change: cursor.advance BACKWARD when direction is prev

2014-05-21 Thread Arthur Barstow
[ Bcc www-tag ; Marc - please use public-webapps for IDB discussions ] On 5/20/14 7:46 PM, marc fawzi wrote: Hi everyone, I've been using IndexedDB for a week or so and I've noticed that cursor.advance(n) will always move n items forward regardless of cursor direction. In other words, when

Re: IndexedDB Proposed API Change: cursor.advance BACKWARD when direction is prev

2014-05-21 Thread Joshua Bell
On Wed, May 21, 2014 at 7:32 AM, Arthur Barstow art.bars...@gmail.comwrote: [ Bcc www-tag ; Marc - please use public-webapps for IDB discussions ] On 5/20/14 7:46 PM, marc fawzi wrote: Hi everyone, I've been using IndexedDB for a week or so and I've noticed that cursor.advance(n) will