Skip to content

TypeError: Failed to execute 'getComputedStyle' on 'Window' #22

Description

I'm getting an javascript type error:

TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

I use the latest (1.0.4) minified version of flexImages and use it like this:

$('.flex-images').flexImages({ rowHeight: 150 });

The Error occurs in Win10 and Linux Mint Chrome Browser (Version 53.0.2785.101 64-bit)

The issue seems to be in row 13 (uncompressed version) of the code:

s = window.getComputedStyle ? getComputedStyle(containers[0], null) : containers[0].currentStyle;

Any ideas or fixes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions