My goal here is to wrap an API function so that the wrapper has the same arguments as the API function and then also has one additional final parameter. The API function is very generic so the wrapper needs to take the types and parameters from this inside function. My reasoning is that I need to enhance the API function
Tag: wrapper
Wrapped clickable DivElement : event isn’t listened
Please, consider the little following code : I’m trying to add the HTML attribute “onclick” with move(); as value. This move value is actually a function that alerts “Clicked !” when the final-user clicks on this HTML element. But it doesn’t work. When I inspect the source, it seems that the property onclick isn’t added to this HTML element. Do