Commit 8f4087cb authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Convert to array when setTargetType

parent 16da559a
......@@ -432,6 +432,7 @@
function setTargetType (targets, type) {
var targetIds = typeof targets === 'undefined' ? getTargetIds() : targets
if (typeof targetIds === 'string') targetIds = [targetIds]
for (var i = 0; i < targetIds.length; i++) {
__data_types[targetIds[i]] = type
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment