Skip to content

Commit

Permalink
default format fix (deprecated property)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed May 30, 2015
1 parent 271b344 commit 0ea9c0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LightPivotTable",
"author": "ZitRo",
"version": "1.1.1",
"version": "1.1.2",
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
"main": "test/testServer.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion source/js/PivotView.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ PivotView.prototype.renderRawData = function (data) {
} else { // number
if (format) { // set format
element.textContent = value ? _.numeral(value).format(format) : "";
} else if (value && info.defaultFormat) {
} else if (value) {
element.textContent = _.numeral(value).format(
value % 1 === 0 ? "#,###" : "#,###.##"
);
Expand Down

0 comments on commit 0ea9c0c

Please sign in to comment.