fixed several consistency issues with y-indexeddb. Implemented support for .close() - a soft replacement for .destroy()

This commit is contained in:
Kevin Jahns
2016-10-31 01:17:24 +01:00
parent 8ab16f4ada
commit f32ff1b613
5 changed files with 40 additions and 18 deletions

View File

@@ -30,7 +30,11 @@ module.exports = function (Y/* :any */) {
*/
Delete: {
encode: function (op) {
return op
return {
target: op.target,
length: op.length || 0,
struct: 'Delete'
}
},
requiredOps: function (op) {
return [] // [op.target]