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 = Class.extend({});
/* Debug
================================================== */
VMM.debug = true;
/* Master Config
================================================== */
@ -229,6 +233,7 @@ if (typeof VMM == 'undefined') {
/* Trace (console.log)
================================================== */
function trace( msg ) {
if (VMM.debug) {
if (window.console) {
console.log(msg);
} else if ( typeof( jsTrace ) != 'undefined' ) {
@ -236,6 +241,7 @@ function trace( msg ) {
} else {
//alert(msg);
}
}
}
/* Extending Date to include Week

Loading…
Cancel
Save