mardi 24 mars 2020

Stuck in infinity loop in Javascript

I'm struggling with the following and can't explain why. When I call the method like

foo ( true )

everything is working as expected. But when I crate a class variable

this.initial = true

in constructor and call the function like

foo ( this.initial )

the function is called in a infinity loop.

Any idea why?




Aucun commentaire:

Enregistrer un commentaire