Skip to content

instanceof with multiple windows/iframes #5886

@murzart

Description

@murzart

Hey,
I experienced an issue with the raycaster, when using multiple windows/iframes.
In my case objects instanceof Array === false in intersectObjects failed.
Object.prototype.toString.call( objects ) !== '[object Array]' works as expected.

This effect is described here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions