aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/router.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-23 12:53:22 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-23 12:53:22 +0100
commitf9e5d7f72783081083f1a6d5753474ae9ca34579 (patch)
treeada4caa7cd4b315b4f1c1667343e3c71c37f3460 /src/js/router.js
parentabe39fcfb760994bba612becb0acd34ab2c2f4dd (diff)
Make dubug output conditional on a debug flag
Replace console.log call to a wrapper function that only outputs if we've set a flag in config.
Diffstat (limited to 'src/js/router.js')
-rw-r--r--src/js/router.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/router.js b/src/js/router.js
index c42a742..c691abb 100644
--- a/src/js/router.js
+++ b/src/js/router.js
@@ -147,7 +147,7 @@
},
changeView: function(view) {
- console.log( 'change View to ' + view.id );
+ FMS.printDebug( 'change View to ' + view.id );
$(view.el).attr('data-role', 'page');
if ( view.prev ) {
$(view.el).attr('data-add-back-btn', 'true');
@@ -170,7 +170,7 @@
$.mobile.changePage($(view.el), options);
if ( view.id != 'front-page' ) {
- console.log('changed View to ' + view.id);
+ FMS.printDebug('changed View to ' + view.id);
this.currentView = view;
}
}