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) { t.find(".removeresult").click(function(e) {
Util.RemoveResult(e); Util.RemoveResult(e);
}); });
// TODO(jwall): support longtouch events on mobile. // TODO(jwall): support longtouch events on mobile?
t.find(".resultbody h2").tooltip({ t.find(".resultbody h2").tooltip({
items: ".resultbody h2", items: ".resultbody h2",
content: function(tt) { content: function(tt) {

View File

@ -7,7 +7,7 @@ define(
version: 1, version: 1,
dbName: "dynamic_bible_db", dbName: "dynamic_bible_db",
stores: ['tags'], stores: ['tags'],
debug: true, debug: false,
// Internal method not for external use. // Internal method not for external use.
handleError: function(e) { handleError: function(e) {
this.debug && console.log("Error: ", e); this.debug && console.log("Error: ", e);
@ -24,9 +24,9 @@ define(
} }
} }
}, },
// Turn on debug logging. // Turn on/off debug logging.
SetDebug: function() { ToggleDebug: function() {
this.debug = self; this.debug = !this.debug;
}, },
// Session does operations on an open database. // Session does operations on an open database.
// ops is expected to be a function taking an IDBDatabase object // ops is expected to be a function taking an IDBDatabase object