Replies: 3 comments
-
Like the docs say:
So the answer is that you can't do that using multiple calls to You can, however, add one binding, where your callback function calls several different functions. |
Beta Was this translation helpful? Give feedback.
-
Yes, I noticed that the js implementation does not use an array or set to save the callback function, but directly uses a field, which will cause the newly bound function to replace the old function. |
Beta Was this translation helpful? Give feedback.
-
It's not an implementation issue. It's by design, and it's the same for lua and js. |
Beta Was this translation helpful? Give feedback.
-
For the demo script, how can I print 1 and 2 on mouse click, I tried different flags, but it seems to only output 2.
Beta Was this translation helpful? Give feedback.
All reactions