logging: add Util.get_logging(), canvas clearing.

Only clear canvas if log level is not debug instead of using
'#__debug__' in the URL.
This commit is contained in:
Joel Martin
2010-09-22 17:11:57 -05:00
parent 57c7903f60
commit c1eba48f79
2 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ updateState = function(state, statusMsg) {
if (canvas && canvas.getContext()) {
canvas.stop();
if (! /__debug__$/i.test(document.location.href)) {
if (Util.get_logging() !== 'debug') {
canvas.clear();
}
}