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

New Instance with optional number param gets NaN #9

Open
matej-snivam opened this issue Jul 14, 2014 · 1 comment
Open

New Instance with optional number param gets NaN #9

matej-snivam opened this issue Jul 14, 2014 · 1 comment

Comments

@matej-snivam
Copy link

Hello,

when creating new instance of starling Asset Manager with constructor like this:
public function AssetManager(scaleFactor:Number=1, useMipmaps:Boolean=false)
{
the scaleFactor gets NaN when it should be 1

@matej-snivam
Copy link
Author

        injector.map(AssetManager).toSingleton(AssetManager);
        injector.getInstance(AssetManager);

this is how I get it for debugging purpose

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

No branches or pull requests

1 participant