From 6f6dd9bdbd6adf0a53b3f35d346fb64c4731d1fd Mon Sep 17 00:00:00 2001 From: Robert Peek Date: Thu, 26 May 2022 14:47:17 +0100 Subject: [PATCH] Fixes #24 --- README.md | 2 +- bower.json | 2 +- js/adapt-hotspot-hotspotItemView.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 262b796..9480868 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ This sets the top and left position of the menu item relative to its container. ```` ---------------------------- -**Version number:** 4.1.1 +**Version number:** 4.1.2 **Framework versions:** 5+ **Author / maintainer:** City and Guilds Kineo [cgkineo/adapt-hotspot-menu](https://github.com/cgkineo/adapt-hotspot-menu) / DeltaNet **RTL support:** yes diff --git a/bower.json b/bower.json index 5904168..8d30983 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "adapt-hotspot-menu-audio", - "version": "4.1.1", + "version": "4.1.2", "framework": ">=5", "homepage": "https://github.com/deltanet/adapt-hotspot-menu-audio", "displayName": "Hotspot Menu", diff --git a/js/adapt-hotspot-hotspotItemView.js b/js/adapt-hotspot-hotspotItemView.js index b7d03db..658f295 100644 --- a/js/adapt-hotspot-hotspotItemView.js +++ b/js/adapt-hotspot-hotspotItemView.js @@ -86,7 +86,7 @@ define([ }); children.forEach(function(article, index) { - if (article.get('_assessment')._isEnabled) { + if (article.get('_assessment') && article.get('_assessment')._isEnabled) { that.model.set('_assessment', true); numAssessments++;