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

Cordova 'deviceready' event check #1120

Merged
1 commit merged into from
Aug 21, 2014
Merged

Cordova 'deviceready' event check #1120

1 commit merged into from
Aug 21, 2014

Commits on Aug 21, 2014

  1. Cordova 'deviceready' event check

    A slightly obnoxious but necessary hack to prevent a race condition between the loading of Apache Cordova and Phaser itself. 
    
    Without waiting for the 'deviceready' event, Phaser can often load first, preventing any console messages from appearing to the user. Because Cordova writes to the platform's console (via CordovaLog), it must first be loaded and signal its own 'deviceready' event before console or plugin usage can occur. Otherwise, all messages and functionality is ignored.
    Dan Cox authored and Dan Cox committed Aug 21, 2014
    Configuration menu
    Copy the full SHA
    fbd2de5 View commit details
    Browse the repository at this point in the history