Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

savegame() only on keypress (previously automatically called) #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

himahuja
Copy link

@himahuja himahuja commented Jul 8, 2017

When the program starts, this code automatically calls savegame, hence the following log occurs:

screen shot 2017-07-09 at 4 56 05 am

UI.btnSave.on('click', savegame());
screen.key(['o', 'O'], savegame());

So, changing it to a function call, solves the issue. We can also do the same for the 'click'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant