in public/dexie.js [2986:3018]
function () {
for (var i = 0, l = objects.length; i < l; ++i) {
hookCtx = { onerror: null, onsuccess: null };
var key = keys$$1 && keys$$1[i];
var obj = objects[i],
effectiveKey = keys$$1
? key
: keyPath
? getByKeyPath(obj, keyPath)
: undefined,
keyToUse = creatingHook.call(
hookCtx,
effectiveKey,
obj,
trans
);
if (effectiveKey == null && keyToUse != null) {
if (keyPath) {
obj = deepClone(obj);
setByKeyPath(obj, keyPath, keyToUse);
} else {
key = keyToUse;
}
}
req =
key != null ? idbstore.add(obj, key) : idbstore.add(obj);
req._hookCtx = hookCtx;
if (i < l - 1) {
req.onerror = errorHandler;
if (hookCtx.onsuccess) req.onsuccess = successHandler;
}
}
},