From 599f285dfdb2172027d42be84fd8d2db882d0fa1 Mon Sep 17 00:00:00 2001 From: godu Date: Thu, 13 Aug 2015 16:46:31 +0200 Subject: [PATCH] Breaks ref in style object --- bits/66_wscommon.js | 2 +- xlsx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bits/66_wscommon.js b/bits/66_wscommon.js index 980297f..d58e7ab 100644 --- a/bits/66_wscommon.js +++ b/bits/66_wscommon.js @@ -56,7 +56,7 @@ function get_cell_style_csf(cellXf) { } - return s; + return JSON.parse(JSON.stringify(s)); } return null; } diff --git a/xlsx.js b/xlsx.js index b44fe15..11b83fe 100644 --- a/xlsx.js +++ b/xlsx.js @@ -7497,7 +7497,7 @@ function get_cell_style_csf(cellXf) { } - return s; + return JSON.parse(JSON.stringify(s)); } return null; }