Skip to content

Commit

Permalink
ONL-4315 - IE11 - Error when clicking on SVG (#25)
Browse files Browse the repository at this point in the history
* initial commit

* ONL-4315 fix: update version

* ONL-4315: update changelog

* ONL-4315 fix: changelog 2
  • Loading branch information
stavros-tomas authored Mar 13, 2020
1 parent 940cb2f commit c258501
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.2] - 2020-03-13
### Fixes
- Fix to mute error 'invalid operand to in' on IE11.

## [2.0.1] - 2020-01-16
### Fixes
- Fix to not modify the existing DEFAULT properties.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ebury/huha",
"description": "huha.js (Hyperactive Users Hint Analysis) is a JavaScript framework that measures the usability and user experience in an automated way, including the limitations of the model and the best practices.",
"version": "2.0.1",
"version": "2.0.2",
"repository": "github:Ebury/huha",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/huha.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class Huha {
const events = ['click', 'focus', 'change'];
events.forEach((eventName) => {
document.querySelector('body').addEventListener(eventName, (evt) => {
if ('huhaTask' in evt.target.dataset) {
if (evt.target.dataset && 'huhaTask' in evt.target.dataset) {
this.registerEvent(eventName, evt.target);
}
}, true);
Expand Down

0 comments on commit c258501

Please sign in to comment.