提交 4d4f691c 编写于 作者: L lang

Optimize List#map

上级 3bbdd393
......@@ -656,6 +656,8 @@ define(function (require) {
* @return {Array}
*/
listProto.map = function (dimensions, cb, stack, context) {
dimensions = normalizeDimensions(dimensions);
var allDimensions = this.dimensions;
var list = new List(
zrUtil.map(allDimensions, this.getDimensionInfo, this),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册