Browse Source

added debug mode

pull/75/head
Zach Wise 13 years ago
parent
commit
ab3a1eaf8f
  1. 6
      source/js/VMM.js

6
source/js/VMM.js

@ -90,6 +90,10 @@ if (typeof VMM == 'undefined') {
//var VMM = {}; //var VMM = {};
var VMM = Class.extend({}); var VMM = Class.extend({});
/* Debug
================================================== */
VMM.debug = true;
/* Master Config /* Master Config
================================================== */ ================================================== */
@ -229,6 +233,7 @@ if (typeof VMM == 'undefined') {
/* Trace (console.log) /* Trace (console.log)
================================================== */ ================================================== */
function trace( msg ) { function trace( msg ) {
if (VMM.debug) {
if (window.console) { if (window.console) {
console.log(msg); console.log(msg);
} else if ( typeof( jsTrace ) != 'undefined' ) { } else if ( typeof( jsTrace ) != 'undefined' ) {
@ -237,6 +242,7 @@ function trace( msg ) {
//alert(msg); //alert(msg);
} }
} }
}
/* Extending Date to include Week /* Extending Date to include Week
================================================== */ ================================================== */

Loading…
Cancel
Save