{"action":"opened","issue":{"url":"https://api.github.com/repos/digitalanimal/advocate-things-js-sdk/issues/11","labels_url":"https://api.github.com/repos/digitalanimal/advocate-things-js-sdk/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/digitalanimal/advocate-things-js-sdk/issues/11/comments","events_url":"https://api.github.com/repos/digitalanimal/advocate-things-js-sdk/issues/11/events","html_url":"https://github.com/digitalanimal/advocate-things-js-sdk/issues/11","id":67611249,"number":11,"title":"A wrapper around the addeventlistener method","user":{"login":"forceedge","id":3443293,"avatar_url":"https://avatars.githubusercontent.com/u/3443293?v=3","gravatar_id":"","url":"https://api.github.com/users/forceedge","html_url":"https://github.com/forceedge","followers_url":"https://api.github.com/users/forceedge/followers","following_url":"https://api.github.com/users/forceedge/following{/other_user}","gists_url":"https://api.github.com/users/forceedge/gists{/gist_id}","starred_url":"https://api.github.com/users/forceedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forceedge/subscriptions","organizations_url":"https://api.github.com/users/forceedge/orgs","repos_url":"https://api.github.com/users/forceedge/repos","events_url":"https://api.github.com/users/forceedge/events{/privacy}","received_events_url":"https://api.github.com/users/forceedge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-10T14:42:42Z","updated_at":"2015-04-10T14:42:42Z","closed_at":null,"body":"Something like AT.Attach('hover', element, function() {\r\n    return _at: {\r\n            touchpoint: 'banner-image-hover',\r\n            user_id: '{{ user.id }}',\r\n            email: '{{ user.email }}'\r\n        }\r\n});\r\n\r\nThat does this bit maybe\r\n\r\ndocument.querySelector('#banner-img')\r\n  .addEventListener('hover', function hoverListener() {\r\n    AT.send({\r\n        _at: {\r\n            touchpoint: 'banner-image-hover',\r\n            user_id: '{{ user.id }}',\r\n            email: '{{ user.email }}'\r\n        }\r\n    });\r\n  });"}}