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

Update to 2.7.4 instant crash: Uncaught TypeError: this.preUpdateLifeSpan is not a function #72

Closed
JarLowrey opened this issue Mar 23, 2017 · 4 comments
Labels

Comments

@JarLowrey
Copy link
Contributor

JarLowrey commented Mar 23, 2017

This Issue is about (delete as applicable)

  • A bug in the API (always say which version you're using!)
Uncaught TypeError: this.preUpdateLifeSpan is not a function
    at Phaser.Image.preUpdate (phaser.js:34431)
    at Phaser.Stage.preUpdate (phaser.js:16669)
    at Phaser.Game.updateLogic (phaser.js:21276)
    at Phaser.Game.update (phaser.js:21167)
    at Phaser.RequestAnimationFrame.updateRAF (phaser.js:48928)
    at _onLoop (phaser.js:48911)
/**
* Automatically called by World.preUpdate.
*
* @method Phaser.Image#preUpdate
* @memberof Phaser.Image
*/
Phaser.Image.prototype.preUpdate = function() {

    if (!this.preUpdateInWorld() || !this.preUpdateLifeSpan())
    {
        return false;
    }

    return this.preUpdateCore();

};

Looks like it's probably related to #63

@photonstorm
Copy link
Collaborator

Bugger, yes. Looks like preUpdateLifeSpan isn't defined anywhere at all. Maybe it was missed out in the PR from @Dreaded-Gnu ?

@photonstorm
Copy link
Collaborator

Ah I've found it and fixed it.

@JarLowrey
Copy link
Contributor Author

Nice, thanks Rich!

@photonstorm
Copy link
Collaborator

Well that was a fast jump from 2.7.4 to 2.7.5 :D

@samme samme added the bug label Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants