DEV Community

Discussion on: How else you can define properties for JavaScript objects

Collapse
dekadentno profile image
Matej

Thanks for the post, I've found it very useful.
Found a little mistake in your code. In your initialization, you have:

...
engine: {
        stage: 'off'
    }
...

But everywhere else, you've used (e.g.):

this.engine.state = 'on'

Collapse
cristicurteanu profile image
Cristian Curteanu Author

Hey Matej!

I have noticed it, thanks for pointing out! I have added the proper changes, and now it should be fine!

Cheers!