summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/component-clock.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/component-clock.js b/src/component-clock.js
index 40ea1a2..389efdc 100644
--- a/src/component-clock.js
+++ b/src/component-clock.js
@@ -46,6 +46,6 @@ var ClockView = React.createClass({
// weekspan.addClass('label-default').text('Fehler');
// }
-function drawClock(date, time, week) {
- ReactDOM.render(<ClockView date={date} time={time} week={week} />, document.getElementById('clock'));
+function drawClock(date, time, week, element) {
+ ReactDOM.render(<ClockView date={date} time={time} week={week} />, element);
}