Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Correct a bug in the last commit. #6

Merged
merged 1 commit into from

2 participants

@pygy

Appologies.

In the last version, if the success callback is absent, the error callback would be called even if there was no rollback.

@grumdrig
Owner

Oh yeah. That was a problem.

@grumdrig grumdrig merged commit e89578f into grumdrig:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 3, 2012
  1. @pygy
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  sqlite.js
View
2  sqlite.js
@@ -137,7 +137,7 @@ function SQLTransactionSync(db, txCallback, errCallback, successCallback) {
if (!this.rolledBack && successCallback) {
successCallback(this);
- } else if (errCallback) {
+ } else if (this.rolledBack && errCallback) {
errCallback(this);
}
}
Something went wrong with that request. Please try again.