Skip to content

Commit 89bc583

Browse files
committed
Allowing to pass DOM elements as container
1 parent 5a0722f commit 89bc583

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/timesheet.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/javascripts/timesheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
this.parse(data || []);
1919

2020
if (typeof document !== 'undefined') {
21-
this.container = document.querySelector('#'+container);
21+
this.container = (typeof container === 'string') ? document.querySelector('#'+container) : container;
2222
this.drawSections();
2323
this.insertData();
2424
}

0 commit comments

Comments
 (0)