Thanks to visit codestin.com
Credit goes to github.com

Skip to content

class selector does not seem to work  #29

@SloppyFresh

Description

@SloppyFresh

If I call:

jss.set('.myClass', {
'display': 'none'
});

the css is updated properly , and the display elements are updated as expected.

However, calling

jss.remove('.myClass');

has no effect.

Calling

jss.remove();

works though.

The .myClass style is not defined anywhere. If I do define it in a .css file included on the page, the behaviour is the same. If I use an element type selector instead of a class selector, remove seems to work as would be expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions