aboutsummaryrefslogtreecommitdiff
path: root/static/components
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 03:25:56 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-13 12:09:07 +0200
commit15bba899c326a30d21fd7d1bdbaec4afe44e47f9 (patch)
tree9baca5d4bd177f4498a4caf78ac740df25e69b4e /static/components
parentEnsure datetime gets set for generated time tags. (diff)
downloadcalp-15bba899c326a30d21fd7d1bdbaec4afe44e47f9.tar.gz
calp-15bba899c326a30d21fd7d1bdbaec4afe44e47f9.tar.xz
Replace some .tagName with instanceof.
Diffstat (limited to 'static/components')
-rw-r--r--static/components/tab-group-element.ts2
-rw-r--r--static/components/vevent.ts1
2 files changed, 1 insertions, 2 deletions
diff --git a/static/components/tab-group-element.ts b/static/components/tab-group-element.ts
index 5cfeab2d..e90997e9 100644
--- a/static/components/tab-group-element.ts
+++ b/static/components/tab-group-element.ts
@@ -174,7 +174,7 @@ class TabGroupElement extends ComponentVEvent {
/* returns our rrule tab if we have one */
has_rrule_tab(): Element | false {
for (let child of this.children) {
- if ((child.firstChild! as HTMLElement).tagName.toLowerCase() === 'vevent-edit-rrule') {
+ if (child.firstChild! instanceof EditRRule) {
return child;
}
}
diff --git a/static/components/vevent.ts b/static/components/vevent.ts
index 2193eabc..5852a2ff 100644
--- a/static/components/vevent.ts
+++ b/static/components/vevent.ts
@@ -19,7 +19,6 @@ abstract class ComponentVEvent extends HTMLElement {
let real_uid;
- // console.log(this.tagName);
if (uid) {
// console.log('Got UID directly');
real_uid = uid;