drop support for the old layout. only v2 supported as of now.
This commit is contained in:
parent
4942cfda2f
commit
a9d8888f6a
1 changed files with 8 additions and 12 deletions
6
uhr.js
6
uhr.js
|
@ -289,19 +289,15 @@ function UhrRenderer(layout, renderarea) {
|
|||
UhrRenderer.prototype.render = function(uhr, beforeshow) {
|
||||
var renderer = this;
|
||||
var letters;
|
||||
if (this.layout.version !== undefined) {
|
||||
switch (this.layout.version) {
|
||||
case 2:
|
||||
var delegate = new _UhrRendererV2Delegate(this.layout);
|
||||
letters = delegate.parse();
|
||||
break;
|
||||
default:
|
||||
console.error("Unknown layout version: " + this.layout.version);
|
||||
console.warn("Unknown layout version: '" + this.layout.version + "'");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
letters = renderer.layout.values;
|
||||
}
|
||||
this.renderarea.fadeOut('fast', function() {
|
||||
renderer.renderarea.empty();
|
||||
for (var y = 0; y < letters.length; y++) {
|
||||
|
|
Loading…
Reference in a new issue