You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+16-17Lines changed: 16 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1380,15 +1380,17 @@ A <dfn>cursor</dfn> is used to iterate over a range of records in an
1380
1380
1381
1381
<div dfn-for=cursor>
1382
1382
1383
-
A [=cursor=] has a <dfn>transaction</dfn>, the [=/transaction=]
1384
-
that was [=transaction/active=] when the cursor was created.
1383
+
A [=cursor=] has a <dfn>source handle</dfn>, which is the [=/index handle=] or the [=/object store handle=] that opened the cursor.
1384
+
1385
+
A [=cursor=] has a <dfn>transaction</dfn>, which is the [=/transaction=] from the cursor's [=cursor/source handle=].
1385
1386
1386
1387
A [=cursor=] has a <dfn>range</dfn> of records in either an
1387
1388
[=/index=] or an [=/object store=].
1388
1389
1389
-
A [=cursor=] has a <dfn>source</dfn> that indicates which [=/index=]
1390
-
or an [=/object store=] is associated with the records over which
1391
-
the [=cursor=] is iterating.
1390
+
A [=cursor=] has a <dfn>source</dfn>, which is an [=/index=] or an [=/object store=] from the cursor's [=cursor/source handle=].
1391
+
The cursor's [=cursor/source=] indicates which [=/index=] or [=/object store=] is associated with the records over which the [=cursor=] is iterating.
1392
+
If the cursor's [=cursor/source handle=] is an [=index handle=], then the cursor's [=cursor/source=] is [=index-handle/index|the index handle's associated index=].
1393
+
Otherwise, cursor's [=cursor/source=] is [=object-store-handle/object store|the object store handle's associated object store=].
1392
1394
1393
1395
A [=cursor=] has a <dfn>direction</dfn> that determines whether it
1394
1396
moves in monotonically increasing or decreasing order of the
@@ -3306,12 +3308,11 @@ The <dfn method for=IDBObjectStore>openCursor(|query|, |direction|)</dfn> method
3306
3308
Rethrow any exceptions.
3307
3309
3308
3310
1. Let |cursor| be a new [=cursor=] with its
3309
-
[=cursor/transaction=] set to |transaction|,
3311
+
[=cursor/source handle=] set to [=/this=],
3310
3312
undefined [=cursor/position=],
3311
3313
[=cursor/direction=] set to |direction|,
3312
3314
[=cursor/got value flag=] set to false,
3313
3315
undefined [=cursor/key=] and [=cursor/value=],
3314
-
[=cursor/source=] set to |store|,
3315
3316
[=cursor/range=] set to |range|, and
3316
3317
[=cursor/key only flag=] set to false.
3317
3318
@@ -3350,12 +3351,11 @@ The <dfn method for=IDBObjectStore>openKeyCursor(|query|, |direction|)</dfn> met
0 commit comments