Commit d96e4712 authored by Ahoy's avatar Ahoy

data-ahoy

parent 9b756688
Pipeline #12909384 passed with stages
in 47 seconds
......@@ -4,8 +4,8 @@ function ahoy_yo() {
var a = document.querySelectorAll('[data-ahoy]');
if (a && a.length) {
for (var i in a) {
if (a.hasOwnProperty(i) && a) {
a.addEventListener('click', function() {
if (a.hasOwnProperty(i) && a[i]) {
a[i].addEventListener('click', function() {
yo(this.getAttribute('data-ahoy'));
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment