mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 00:09:54 -04:00
Api change for the db code SetDebug -> ToggleDebug.
This commit is contained in:
parent
dcd08a2dd1
commit
65736aa278
@ -305,7 +305,7 @@ define(['jquery', 'reference', 'tagging', 'jquery.ui'],
|
||||
t.find(".removeresult").click(function(e) {
|
||||
Util.RemoveResult(e);
|
||||
});
|
||||
// TODO(jwall): support longtouch events on mobile.
|
||||
// TODO(jwall): support longtouch events on mobile?
|
||||
t.find(".resultbody h2").tooltip({
|
||||
items: ".resultbody h2",
|
||||
content: function(tt) {
|
||||
|
8
js/db.js
8
js/db.js
@ -7,7 +7,7 @@ define(
|
||||
version: 1,
|
||||
dbName: "dynamic_bible_db",
|
||||
stores: ['tags'],
|
||||
debug: true,
|
||||
debug: false,
|
||||
// Internal method not for external use.
|
||||
handleError: function(e) {
|
||||
this.debug && console.log("Error: ", e);
|
||||
@ -24,9 +24,9 @@ define(
|
||||
}
|
||||
}
|
||||
},
|
||||
// Turn on debug logging.
|
||||
SetDebug: function() {
|
||||
this.debug = self;
|
||||
// Turn on/off debug logging.
|
||||
ToggleDebug: function() {
|
||||
this.debug = !this.debug;
|
||||
},
|
||||
// Session does operations on an open database.
|
||||
// ops is expected to be a function taking an IDBDatabase object
|
||||
|
Loading…
x
Reference in New Issue
Block a user