Browse Source

Convert to array when setTargetType

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
8f4087cb70
  1. 1
      c3.js

1
c3.js

@ -432,6 +432,7 @@
function setTargetType (targets, type) { function setTargetType (targets, type) {
var targetIds = typeof targets === 'undefined' ? getTargetIds() : targets var targetIds = typeof targets === 'undefined' ? getTargetIds() : targets
if (typeof targetIds === 'string') targetIds = [targetIds]
for (var i = 0; i < targetIds.length; i++) { for (var i = 0; i < targetIds.length; i++) {
__data_types[targetIds[i]] = type __data_types[targetIds[i]] = type
} }

Loading…
Cancel
Save