From b4f2a466b727ce773c5b8eacaa997ba4d818e9e4 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Wed, 25 Jun 2014 13:12:58 +0200 Subject: [PATCH] some debug output --- uhr.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/uhr.js b/uhr.js index 33ebe98..703b0af 100644 --- a/uhr.js +++ b/uhr.js @@ -286,9 +286,18 @@ along with this program. If not, see . function UhrRenderer(layout, renderarea) { this.layout = layout; this.renderarea = renderarea; + this._debug = true; this._parseLayoutV2 = function() { - console.log("attempting to parse layout v2"); - var letters = [['a'], ['b', 'c',]]; + if (this._debug) console.log("attempting to parse layout v2"); + var letters = []; + console.log("lett:"+typeof this.layout.letters); + console.log(this.layout.letters); + console.log("perm:"+typeof this.layout.permanent); + console.log(this.layout.permanent); + console.log("mins:"+typeof this.layout.minutes); + console.log(this.layout.minutes); + console.log("hour:"+typeof this.layout.hours); + console.log(this.layout.hours); return letters; } }