Skip to content

Cast.bitmapData() fails #1

Description

@eternauta1337

Cast.bitmapData() fails to identify data that is of type ImageTexture (i.e. lines 278 and 279 are skipped) even tho in the debugger I'm seeing that data is of such type. I believe that this is because TS's instanceof operator is not as powerful as AS3's is operator and in this case is failing to identify the type.

In code:
https://github.com/awayjs/awayjs-display/blob/master/lib/utils/Cast.ts#L278

Stack Overflow comments:
http://stackoverflow.com/questions/12789231/class-type-check-with-typescript

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions