Skip to content

Commit

Permalink
Fix object comparison warning and bump version (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
kplindegaard authored Oct 23, 2024
1 parent ca78d83 commit 11c063c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/gauge.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class Gauge extends BaseGauge
@ctx.restore()

renderTicks: (ticksOptions, w, h, radius) ->
if ticksOptions != {}
if typeof ticksOptions is 'object' and ticksOptions isnt null and Object.keys(ticksOptions).length > 0
divisionCount = ticksOptions.divisions || 0
subdivisionCount = ticksOptions.subDivisions || 0
divColor = ticksOptions.divColor || '#fff'
Expand Down
2 changes: 1 addition & 1 deletion dist/gauge.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/gauge.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gauge.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ <h2>Supported browsers</h2>

<h2>Changes</h2>

<h3 id="v1.3.9">Version 1.3.9 (19.10.2024)</h3>
<p>
<ul>
<li>Fixed <a href='https://github.com/bernii/gauge.js/issues/273'>#273</a> about inappropriate object comparison.</li>
</ul>
</p>
<h3 id="v1.3.8">Version 1.3.8 (18.02.2024)</h3>
<p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gaugeJS",
"version": "1.3.8",
"version": "1.3.9",
"description": "100% native and cool looking animated JavaScript/CoffeeScript gauge",
"main": "dist/gauge.js",
"repository": {
Expand Down

0 comments on commit 11c063c

Please sign in to comment.