We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this
Currently, the code contains many instances of var that = this;
var that = this;
These likely originate from the forked repository, possibly due to an automated JS-to-TS conversion tool.
This can lead to various issues, the most significant being the silent loss of this, which is difficult to detect.
() => {}
xx = this;
var self = this;
var xxx
var
let
The text was updated successfully, but these errors were encountered:
feat: improve this-binding / fix typings #3
5da9f05
- improve this binding - fix widget typing
No branches or pull requests
Currently, the code contains many instances of
var that = this;
This can lead to various issues, the most significant being the silent loss of
this
, which is difficult to detect.TODOs:
var that = this;
and replace them with arrow functions() => {}
wherever applicable.xx = this;
var self = this;
, which resembles Python-style code but is unnecessary in modern TypeScript).var xxx
declarations.var
is legacy code and poses potential risks in every line where it appears.let
them entirely is advisable.The text was updated successfully, but these errors were encountered: