提交 45ec91f7 编写于 作者: 1 100pah

do not use forEach

上级 65d0f05d
......@@ -5,6 +5,7 @@
define(function (require) {
var VisualMapping = require('../../visual/VisualMapping');
var zrUtil = require('zrender/core/util');
return function (ecModel, payload) {
ecModel.eachSeriesByType('sankey', function (seriesModel) {
......@@ -18,7 +19,7 @@ define(function (require) {
var minValue = nodes[0].getLayout().value;
var maxValue = nodes[nodes.length - 1].getLayout().value;
nodes.forEach(function (node) {
zrUtil.each(nodes, function (node) {
var mapping = new VisualMapping({
type: 'color',
mappingMethod: 'linear',
......
......@@ -1012,7 +1012,7 @@ define(function (require) {
};
});
var sampleSeriesIndex;
payloadBatch.forEach(function (payload, idx) {
zrUtil.each(payloadBatch, function (payload, idx) {
if (seriesList[idx].getData().hasValue(payload.dataIndexInside)) {
sampleSeriesIndex = idx;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册