How "onchange" work

88 views
Skip to first unread message

STeEL

unread,
Oct 8, 2021, 8:15:31 AM10/8/21
to Blockly
I am working on "reactive type system" using blockly but sometime this event "onchange" running multiple times. The question is "how onchange work?"

Beka Westberg

unread,
Oct 11, 2021, 12:20:13 PM10/11/21
to blo...@googlegroups.com
Hello!

The onchange property of a block just registers an event listener with the workspace, so it gets triggered every time there is an event, no matter what kind it is. This includes block move events, workspace move events, field change events, etc.

I hope that helps! If you have any further questions please reply!
--Beka

On Fri, Oct 8, 2021 at 8:15 AM STeEL <stee...@gmail.com> wrote:
I am working on "reactive type system" using blockly but sometime this event "onchange" running multiple times. The question is "how onchange work?"

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/8c9251dd-5ca6-41c5-a400-4f000f8d80b6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages