Skip to content

Commit

Permalink
Merge pull request #284 from uiuc-ischool-accessible-computing-lab/28…
Browse files Browse the repository at this point in the history
…3-bug-fix-typo-in-scatterplotjs

#283 bug fix typo in scatterplot.js
  • Loading branch information
ellvix authored Nov 16, 2023
2 parents 45ff9dc + 3d4aebc commit feca3ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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).

## [Unreleased]

### Fixed

- Typo in scatterplot.js [#283](https://github.com/uiuc-ischool-accessible-computing-lab/maidr/issues/283)

## [1.0.0] - 2023-11-01
5 changes: 4 additions & 1 deletion src/js/scatterplot.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,10 @@ class ScatterPlot {
element = singleMaidr.elements[0];
}
let prefix = '';
if ('element' in singleMaidr && element.tagName.toLowerCase() == 'circle') {
if (
'elements' in singleMaidr &&
element.tagName.toLowerCase() === 'circle'
) {
prefix = 'c';
}
return prefix;
Expand Down

0 comments on commit feca3ae

Please sign in to comment.