Revert "get rid of more linting errors"
This reverts commit 0035264f27
.
This commit is contained in:
parent
9e4a00e4bc
commit
49b4fc4dfe
1 changed files with 6 additions and 8 deletions
14
src/uhr.js
14
src/uhr.js
|
@ -508,7 +508,7 @@
|
||||||
renderarea.fadeIn('fast');
|
renderarea.fadeIn('fast');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
function UhrRendererV2Delegate(layout) {
|
function UhrRendererV2Delegate(layout) {
|
||||||
var vorne0 = {
|
var vorne0 = {
|
||||||
|
@ -718,9 +718,7 @@
|
||||||
"59": [vorne5, hinten9]
|
"59": [vorne5, hinten9]
|
||||||
};
|
};
|
||||||
|
|
||||||
var parseArrayOrObject, parseObject, parseTimeDefinition;
|
function parseArrayOrObject(letters, styleClass, input) {
|
||||||
|
|
||||||
parseArrayOrObject = function parseArrayOrObject(letters, styleClass, input) {
|
|
||||||
if (typeof input !== 'undefined' && input !== null) {
|
if (typeof input !== 'undefined' && input !== null) {
|
||||||
if (Array.isArray(input)) {
|
if (Array.isArray(input)) {
|
||||||
input.forEach(function(item) {
|
input.forEach(function(item) {
|
||||||
|
@ -732,7 +730,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
parseObject = function parseObject(letters, styleClass, object) {
|
function parseObject(letters, styleClass, object) {
|
||||||
if (typeof object !== 'undefined' && object !== null) {
|
if (typeof object !== 'undefined' && object !== null) {
|
||||||
Object.keys(object).forEach(function(y) {
|
Object.keys(object).forEach(function(y) {
|
||||||
var highlightLetters = object[y];
|
var highlightLetters = object[y];
|
||||||
|
@ -743,7 +741,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
parseTimeDefinition = function parseTimeDefinition(letters, styleClass, definition) {
|
function parseTimeDefinition(letters, styleClass, definition) {
|
||||||
if (typeof definition !== 'undefined' && definition !== null) {
|
if (typeof definition !== 'undefined' && definition !== null) {
|
||||||
Object.keys(definition).forEach(function(listString) {
|
Object.keys(definition).forEach(function(listString) {
|
||||||
var array = listString.split(',');
|
var array = listString.split(',');
|
||||||
|
@ -775,7 +773,7 @@
|
||||||
parseTimeDefinition(letters, 'hour', layout.hours);
|
parseTimeDefinition(letters, 'hour', layout.hours);
|
||||||
return letters;
|
return letters;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ein Buchstabe. Hilfsklasse für den Renderer und Inhalt der Layout-Arrays.
|
* Ein Buchstabe. Hilfsklasse für den Renderer und Inhalt der Layout-Arrays.
|
||||||
|
@ -795,5 +793,5 @@
|
||||||
this.toString = function() {
|
this.toString = function() {
|
||||||
return '<span class="item letter ' + myStyle + '">' + myValue + '</span>';
|
return '<span class="item letter ' + myStyle + '">' + myValue + '</span>';
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
Loading…
Reference in a new issue