Skip to content

Add bind this example for eventBus in plugins #8668

@WingDr

Description

@WingDr

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

在点击触发的三个 eventBus 上都试了一下,先打印的是event,然后打印的是this,我不知道这算js的特性还是程序bug,并且没有找到相关的issue,所以我先提一下

image

Expected result

this应该是指向这个函数所在类的

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.9.3
- Operating System: windows 
- Browser (if used):

Log file

I 2023/07/03 22:03:14 box.go:79: auto stat [trees=275, blocks=13238, dataSize=210 MB, assetsSize=24 MB]
I 2023/07/03 22:03:14 disk.go:33: disk usage [total=785 GB, used=233 GB, free=552 GB]
I 2023/07/03 22:07:27 repository.go:1182: synced data repo [kernel=xy62sf2, provider=0, ufc=4, dfc=1, ucc=2, dcc=0, ub=163 kB, db=72 kB] in [1.89s]

More information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions