Event Handlers vs onReady

@yisrael-wix
What i mean is, :sweat_smile:

when NOT using this structure…

$w.onReady(() => {
    $w("#menuButton1, #menuBox1").onMouseIn((event) => {
        $w("#menuBox1").show();
    });
    $w("#menuButton1, #menuBox1").onMouseOut((event) => {
        $w("#menuBox1").hide();
    });
 // etc
})

and you are working with several datasets, you have to put in every of your codelines the onReady of the current dataset. So you will have several (onReady-commands) in your code, right?

When using the mentioned code-structure, you put one time the onRady-command of a used dataset, and then you can work with it (just one line of code.)

That is what i wanted to say. :sweat_smile: