Skip to content

Commit

Permalink
remove fragment when building clip path url
Browse files Browse the repository at this point in the history
fixes #1079, again
  • Loading branch information
gordonwoodhull committed May 23, 2016
1 parent 81926d6 commit d46a86a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/coordinate-grid-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ dc.coordinateGridMixin = function (_chart) {
_parent = parent;
}

var href = window.location.href.split('#')[0];

_g = _parent.append('g');

_chartBodyG = _g.append('g').attr('class', 'chart-body')
.attr('transform', 'translate(' + _chart.margins().left + ', ' + _chart.margins().top + ')')
.attr('clip-path', 'url(' + window.location.href + '#' + getClipPathId() + ')');
.attr('clip-path', 'url(' + href + '#' + getClipPathId() + ')');

return _g;
};
Expand Down

0 comments on commit d46a86a

Please sign in to comment.