diff options
author | Renato Botelho <renato@netgate.com> | 2017-02-10 14:07:33 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-02-10 14:07:33 -0200 |
commit | c674ae38fc09b06d4392722d0b927913368f37b3 (patch) | |
tree | 6dc59ca630165f18b54a6ce92fff832d085d0423 | |
parent | edf69b0cc0b7f0042e636f69261c6c1d1cbae4de (diff) | |
download | pfsense-c674ae38fc09b06d4392722d0b927913368f37b3.zip pfsense-c674ae38fc09b06d4392722d0b927913368f37b3.tar.gz |
Ticket #7157: Backport upstream fix from https://github.com/novus/nvd3/commit/305cbad96e94f61a3c0bae02d16c28e09249fbc0
-rw-r--r-- | src/usr/local/www/vendor/nvd3/nv.d3.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 +})(); |