We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d64624 commit 9d464a6Copy full SHA for 9d464a6
1 file changed
www/SQLitePlugin.js
@@ -127,14 +127,14 @@
127
};
128
129
SQLitePlugin.prototype.startNextTransaction = function() {
130
- var self = this;
+ var _this = this;
131
nextTick(function() {
132
var txLock;
133
- if (!(self.dbname in self.openDBs) || self.openDBs[self.dbname].state !== DB_STATE_OPEN) {
+ if (!(_this.dbname in _this.openDBs) || _this.openDBs[_this.dbname].state !== DB_STATE_OPEN) {
134
console.log('cannot start next transaction: database not open');
135
return;
136
}
137
- txLock = txLocks[self.dbname];
+ txLock = txLocks[_this.dbname];
138
if (!txLock) {
139
console.log('cannot start next transaction: database connection is lost');
140
0 commit comments