Skip to content

Commit

Permalink
fix: fallback to __bindto's id attribute when it is not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauris committed Mar 23, 2014
1 parent 1f093dd commit 16a1e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c3.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

/*-- Set Variables --*/

var clipId = __bindto.replace('#', '') + '-clip',
var clipId = (typeof __bindto === "string" ? __bindto.replace('#', '') : __bindto.id) + '-clip',
clipPath = getClipPath(clipId);

var isTimeSeries = (__axis_x_type === 'timeseries'),
Expand Down

0 comments on commit 16a1e6d

Please sign in to comment.