Unified · Split
| @@ -57,7 +57,9 @@ · 56 unmodified lines | ||
| 57 | 57 | mode: if @DOC then 'single' else 'full' |
| 58 | 58 | iframe: (window.top isnt window).toString() |
| 59 | 59 | dataCallback: (data) -> |
| 60 | − try $.extend(data.user ||= {}, app.settings.settings) | |
| 60 | + try | |
| 61 | + $.extend(data.user ||= {}, app.settings.settings) | |
| 62 | + data.user.lastIDBTransaction = app.lastIDBTransaction if app.lastIDBTransaction | |
| 61 | 63 | data |
| 62 | 64 | .install() |
| 63 | 65 | @previousErrorHandler = onerror |
| @@ -244,6 +244,7 @@ class app.DB · 243 unmodified lines | ||
| 244 | 244 | @useIndexedDB and (not @cachedDocs or @cachedDocs[entry.doc.slug]) |
| 245 | 245 | |
| 246 | 246 | idbTransaction: (db, options) -> |
| 247 | + app.lastIDBTransaction = [options.stores, options.mode] | |
| 247 | 248 | txn = db.transaction(options.stores, options.mode) |
| 248 | 249 | unless options.ignoreError is false |
| 249 | 250 | txn.onerror = (event) -> |