From c674ae38fc09b06d4392722d0b927913368f37b3 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 10 Feb 2017 14:07:33 -0200 Subject: Ticket #7157: Backport upstream fix from https://github.com/novus/nvd3/commit/305cbad96e94f61a3c0bae02d16c28e09249fbc0 --- src/usr/local/www/vendor/nvd3/nv.d3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/usr/local/www/vendor/nvd3/nv.d3.js b/src/usr/local/www/vendor/nvd3/nv.d3.js index 149621d..a119b8d 100644 --- a/src/usr/local/www/vendor/nvd3/nv.d3.js +++ b/src/usr/local/www/vendor/nvd3/nv.d3.js @@ -1371,6 +1371,8 @@ Also use _d3options so we can track what we inherit for documentation and chaine */ nv.utils.inheritOptionsD3 = function(target, d3_source, oplist) { target._d3options = oplist.concat(target._d3options || []); + // Find unique d3 options (string) and update d3options + target._d3options = (target._d3options || []).filter(function(item, i, ar){ return ar.indexOf(item) === i; }); oplist.unshift(d3_source); oplist.unshift(target); d3.rebind.apply(this, oplist); @@ -14349,4 +14351,4 @@ nv.models.sunburstChart = function() { }; nv.version = "1.8.3"; -})(); \ No newline at end of file +})(); -- cgit v1.1