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