Skip to content

Commit

Permalink
jme.display: don't add with_precision() to numbers with no precision …
Browse files Browse the repository at this point in the history
…info

This saves space in the SCORM suspend data.
  • Loading branch information
christianp committed Feb 9, 2024
1 parent 86a6308 commit 2100604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/scripts/jme-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,7 @@ JMEifier.prototype = {
var precision = options.precision === undefined ? 'nothing' : options.precision;
var precisionType = options.precisionType === undefined ? 'nothing' : this.string(options.precisionType,{});
var store_precision = options.store_precision === undefined ? this.settings.store_precision : options.store_precision;
if(store_precision) {
if(store_precision && (precision != 'nothing' || precisionType != 'nothing')) {
out = 'with_precision('+out+', ' + precision + ', '+ precisionType +')';
return out;
}
Expand Down

0 comments on commit 2100604

Please sign in to comment.