diff --git a/uhr.js b/uhr.js
index 58deffe..23203a8 100644
--- a/uhr.js
+++ b/uhr.js
@@ -18,6 +18,7 @@ along with this program. If not, see .
* @param themeElement Das HTML-Stylesheet-Tag, das das Theme-CSS referenziert.
*/
function Uhr(clockarea, themeElement) {
+ this.id = Uhr.id++;
this.clockarea = this.initClockarea(clockarea);
this.toggleSwitch = this.initToggleSwitch();
this.letterarea = clockarea.find('.letterarea');
@@ -27,6 +28,7 @@ function Uhr(clockarea, themeElement) {
this.currentLayout = Uhr.layouts['undefined'];
this.currentMinute = -1;
}
+Uhr.id = 0;
Uhr.layouts = new Array();
Uhr.register = function (locale, layout) {
Uhr.layouts[locale] = layout;
@@ -150,13 +152,13 @@ Uhr.prototype.initClockarea = function(clockarea) {
}
Uhr.prototype.initToggleSwitch = function() {
var toggleSwitch = $('
');
- var input = $('');
+ var input = $('');
var uhr = this;
input.on('click', function() {
uhr.toggle();
});
toggleSwitch.append(input);
- toggleSwitch.append('