From 0ea9c0c5f4aaf3fe6a719a6b04083ee57621b748 Mon Sep 17 00:00:00 2001 From: ZitRos Date: Sat, 30 May 2015 16:07:07 +0300 Subject: [PATCH] default format fix (deprecated property) --- package.json | 2 +- source/js/PivotView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d5b72bf..3770690 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/source/js/PivotView.js b/source/js/PivotView.js index 2ef03d0..fbf4d49 100644 --- a/source/js/PivotView.js +++ b/source/js/PivotView.js @@ -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 ? "#,###" : "#,###.##" );