re-indented the code

This commit is contained in:
Manuel Friedli 2014-07-04 00:52:09 +02:00
parent de75a3bdaf
commit 6f6feb5cf5

View file

@ -376,6 +376,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
});
};
}
function UhrRendererV2Delegate(layout) {
function parseArrayOrObject(letters, styleClass, input) {
if (Array.isArray(input)) {
@ -386,6 +387,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
parseObject(letters, styleClass, input);
}
}
function parseObject(letters, styleClass, object) {
Object.keys(object).forEach(function (y) {
var highlightLetters = object[y];
@ -394,6 +396,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
});
});
}
function parseTimeDefinition(letters, styleClass, definition) {
Object.keys(definition).forEach(function (listString) {
var array = listString.split(',');
@ -403,6 +406,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
});
});
}
this.parse = function parse() {
var letters = [];
layout.letters.forEach(function (string) {
@ -419,6 +423,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
return letters;
};
}
/**
* Ein Buchstabe. Hilfsklasse für den Renderer und Inhalt der Layout-Arrays.
* @param value Der Buchstabe, der Dargestellt werden soll.