Skip to content

Commit

Permalink
Fixes console error for _isEnabled not being in the JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPeek committed Mar 31, 2020
1 parent fa65ba8 commit 0b09ae5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Several elements of **Text Entry** have been assigned a label using the [aria-la
No known limitations.

----------------------------
**Version number:** 4.2.0
**Version number:** 4.2.1
**Framework versions supported:** 4+
**Author / maintainer:** DeltaNet with [contributors](https://github.com/deltanet/adapt-textEntry-audio/graphs/contributors)
**Accessibility support:** yes
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt-textEntry-audio",
"version": "4.2.0",
"version": "4.2.1",
"framework": ">=4",
"homepage": "https://github.com/deltanet/adapt-textEntry-audio",
"issues": "https://github.com/deltanet/adapt-textEntry-audio/issues",
Expand Down
1 change: 1 addition & 0 deletions js/textEntryAudioView.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ define([
},

updateCounter: function() {
if (!this.model.get('_characterLimit')) return;
if (!this.model.get('_characterLimit')._isEnabled) return;

var length = this.$('.textEntry-audio-item-textbox').val().length;
Expand Down

0 comments on commit 0b09ae5

Please sign in to comment.