Browse Source

fix: fallback to __bindto's id attribute when it is not a string

pull/80/head
Lauris 11 years ago
parent
commit
16a1e6d5d5
  1. 2
      c3.js

2
c3.js

@ -177,7 +177,7 @@
/*-- Set Variables --*/ /*-- Set Variables --*/
var clipId = __bindto.replace('#', '') + '-clip', var clipId = (typeof __bindto === "string" ? __bindto.replace('#', '') : __bindto.id) + '-clip',
clipPath = getClipPath(clipId); clipPath = getClipPath(clipId);
var isTimeSeries = (__axis_x_type === 'timeseries'), var isTimeSeries = (__axis_x_type === 'timeseries'),

Loading…
Cancel
Save