Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
How can I pass extra parameters into the done callback function for example i need to pass the array value into the done function something like this
for (i = 0; i < arrNewLinesText.length; i++) {
transcriptTextDB.indexedDB.db.get("tableName", "lineID").done(function (record, arrNewLinesText[i]) {
//inside the done do something with array element arrNewLinesText[i];
});
How can I pass extra parameters into the done callback function for example i need to pass the array value into the done function something like this
for (i = 0; i < arrNewLinesText.length; i++) { transcriptTextDB.indexedDB.db.get("tableName", "lineID").done(function (record, arrNewLinesText[i]) { //inside the done do something with array element arrNewLinesText[i]; });