Skip to content

target.className.match 报错 #2211

@kuangche

Description

@kuangche

从一个绑定鼠标事件对象上 快速移动到 echarts图上的时候, 会报 t.className.match is not a function 这个错误,前面应该在加一层判断吧
var isZRenderElement = function (event) {
// 暂时忽略 IE8-
if (window.G_vmlCanvasManager) {
return true;
}

        event = event || window.event;

        // 进入对象优先~
        var target = event.toElement
                      || event.relatedTarget
                      || event.srcElement
                      || event.target;

        return target && target.className.match && target.className.match(config.elementClassName)
    };

靠谱么

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions