From c25850120cb2608ebe4ccd2685d582a0add2a1ce Mon Sep 17 00:00:00 2001 From: stavros-tomas <55188371+stavros-tomas@users.noreply.github.com> Date: Fri, 13 Mar 2020 17:25:51 +0000 Subject: [PATCH] ONL-4315 - IE11 - Error when clicking on SVG (#25) * initial commit * ONL-4315 fix: update version * ONL-4315: update changelog * ONL-4315 fix: changelog 2 --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/huha.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 558c26e..78d12a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/package.json b/package.json index ebc38c2..f2068c6 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/huha.js b/src/huha.js index 89aa423..fa56dfc 100644 --- a/src/huha.js +++ b/src/huha.js @@ -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);