Skip to content

Editor.installDblClickHandler incorrecly uses the reference to "this" #360

@Duoladuola

Description

@Duoladuola

In maxGraph, in Editor.installDblClickHandler, the "this" reference in the callback is a graph intance.
In mxGraph, "this" was the "editor" instance.

maxGraph 0.8.0
image
In the code of version 0.13.0: https://github.com/maxGraph/maxGraph/blob/v0.13.0/packages/core/src/editor/Editor.ts#L1559-L1569

mxGraph
image
In the code of version 4.2.2: https://github.com/jgraph/mxgraph/blob/ff141aab158417bd866e2dfebd06c61d40773cd2/javascript/src/js/editor/mxEditor.js#L1783-L1800

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions