Skip to content

Commit 4ca92d1

Browse files
committed
Fixed Uncaught TypeError getAttribute error.
1 parent 8a8209a commit 4ca92d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

assets/js/dialog-js.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
(function() {
1+
(function() {
22
var dlgtrigger = document.querySelector('[data-dialog]'),
33
somedialog = document.getElementById(dlgtrigger.getAttribute('data-dialog')),
44
dlg = new DialogFx(somedialog);
55

66
dlgtrigger.addEventListener('click', dlg.toggle.bind(dlg));
77

8-
})();
8+
});
99

1010
(function() {
1111
var dlgtrigger = document.querySelector('[data-dialog1]'),
@@ -14,7 +14,7 @@
1414

1515
dlgtrigger.addEventListener('click', dlg.toggle.bind(dlg));
1616

17-
})();
17+
});
1818

1919
(function() {
2020
var dlgtrigger = document.querySelector('[data-dialog2]'),
@@ -23,4 +23,4 @@
2323

2424
dlgtrigger.addEventListener('click', dlg.toggle.bind(dlg));
2525

26-
})();
26+
});

0 commit comments

Comments
 (0)