Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storing selector in a variable doesn't seem to work #41

Open
gabrie-ciprian-magda opened this issue Aug 22, 2017 · 1 comment
Open

storing selector in a variable doesn't seem to work #41

gabrie-ciprian-magda opened this issue Aug 22, 2017 · 1 comment

Comments

@gabrie-ciprian-magda
Copy link

I am not sure I am doing something wrong, but I try to store the selector name in a variable like this:
$target = $this.closest('.whatever').find('.' + $identifier);
and try to change it like this:
jss.set($target, { borderColor: "#whatever" });
but I get this error:

Uncaught TypeError: t.toLowerCase is not a function

@abdussamad1977
Copy link

abdussamad1977 commented Sep 9, 2017

Variable works fine.
Make sure variable shouldn't have an element, it must have selector text value only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants