Skip to content

'this' points to Window rather than custom element when called through setTimeOut() #1853

Closed
@aravind901

Description

After calling a function through setTimeOut inside a Polymer element, 'this' no longer points to the custom element but to the window. Demo below.

http://jsbin.com/hehafo/2/edit?html,console,output

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