target node change class name
See original GitHub issueClass Name should change when calling static methods
Expected Behavior
- As the documentation says
Currently the output of browser and node is identical.
But there is a difference between them.
- When a class name change it should change the class name in static method calls
Current Behavior
- difference between the target node and browser
- when calling static methods class name should also change
Steps to Reproduce
Code exmple:
class A {
static async one(){
}
static async two(){
await A.one()
}
}
When using target=Brwoser:
class A {
static async ['one']() {
}
static async ['two']() {
await A['one']();
}
}
When using target=node:
class _0xd91f5a {
static async ['one']() {
}
static async ['two']() {
await A['one']();
}
}
When running with a target node you get error because A is not defined
Your Environment
- Obfuscator version used: 0.24.0
- Node version used: 12.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Change Class Name To An Element In JavaScript
When you use the className property or setAttribute() method, they will replace any existing one or more class names with the new class...
Read more >How to Change element Class Name using JavaScript
You can use the += operator to add (or change) multiple class names of an element. For example,. if (e.target.className == 'defaultImage') {...
Read more >How to change class name of ANOTHER element (not the ...
Open up the arrow function's body: const observer = new IntersectionObserver( ([e]) => { e.target.classList.toggle("is-pinned", e.
Read more >Element.className - Web APIs | MDN
The className property of the Element interface gets and sets the value of the class attribute of the specified element.
Read more >Cannot change className of parent node. (Example)
Cannot change className of parent node. · html> · head> · title>JavaScript and the DOM</title> · head> · link rel="stylesheet" href="style.css" /> ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will try to fix soon
Nice!