Skip to content

Commit dcfd98d

Browse files
author
quao
committed
enha 优化三元表达式
1 parent 18ff220 commit dcfd98d

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

src/coord/cartesian/Grid.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,7 @@ class Grid implements CoordinateSystemMaster {
589589
if (!item) {
590590
return;
591591
}
592-
const items = isObject(item) && !item.coord && !item.xAxis && !item.yAxis && Array.isArray(item)
593-
? item : [item];
592+
const items = Array.isArray(item) ? item : [item];
594593

595594
each(items, function (markerItem) {
596595
if (!markerItem) {

test/axis-marker-extent.html

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)