Api change for the db code SetDebug -> ToggleDebug.

This commit is contained in:
Jeremy Wall (zaphar) 2013-04-20 14:08:18 -05:00
parent dcd08a2dd1
commit 65736aa278
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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