Skip to content

Fix for bug #906#912

Merged
photonstorm merged 6 commits intophaserjs:devfrom
j0hnskot:onDecoded-patch
Jul 1, 2014
Merged

Fix for bug #906#912
photonstorm merged 6 commits intophaserjs:devfrom
j0hnskot:onDecoded-patch

Conversation

@j0hnskot
Copy link
Copy Markdown
Contributor

Fixes the bug #906 by adding a check for isDecoded in the update loop.

@photonstorm
Copy link
Copy Markdown
Collaborator

Thanks for this - I'm wondering if the Signal will be dispatched multiple times (as it's part of the update loop), rather than just once like it should.

@j0hnskot
Copy link
Copy Markdown
Contributor Author

When i tested it i used addOnce. Probably without that the event will fire many times. But i think a simple variable to check if the event was fired will solve this since the onDecoded won't need to actually fire any other time except the first one. Want me to add it and make a new pull request?

@j0hnskot
Copy link
Copy Markdown
Contributor Author

Fixed it and added a description to the boolean.

@photonstorm
Copy link
Copy Markdown
Collaborator

Sweet - thank you :)

photonstorm added a commit that referenced this pull request Jul 1, 2014
@photonstorm photonstorm merged commit e1bc2b7 into phaserjs:dev Jul 1, 2014
@j0hnskot j0hnskot deleted the onDecoded-patch branch July 1, 2014 21:09
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.

2 participants