Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.someOtherFunction = funciton (key) {
- dao.deleteNote(key,
- this.webNoteDeleted.bind(this, key));
- };
- this.webNoteDeleted = function (note, response) {
- //Mojo.Log.info("Web Note Deleted %j %j", note, response);
- if (note === response) {
- this.finishTransactions('notes');
- }
- };
- DAO:
- this.deleteNote = function (inNote, inCallback) {
- //Mojo.Log.info("Entering db deleteNote()");
- // Delete Folder with value inNote
- this.db.transaction((function (inTransaction) {
- inTransaction.executeSql(sqlDeleteNote,
- [inNote],
- function(){
- //Mojo.Log.info("Deleted Note", inNote);
- inCallback(inNote);
- },
- this.errorHandler.bind(this));
- }).bind(this));
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement