{"action":"created","issue":{"url":"https://api.github.com/repos/Box9/jss/issues/2","labels_url":"https://api.github.com/repos/Box9/jss/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Box9/jss/issues/2/comments","events_url":"https://api.github.com/repos/Box9/jss/issues/2/events","html_url":"https://github.com/Box9/jss/issues/2","id":741412,"number":2,"title":"Error - rules[i].selectorText is undefined","user":{"login":"KingScooty","id":610869,"avatar_url":"https://avatars.githubusercontent.com/u/610869?v=3","gravatar_id":"","url":"https://api.github.com/users/KingScooty","html_url":"https://github.com/KingScooty","followers_url":"https://api.github.com/users/KingScooty/followers","following_url":"https://api.github.com/users/KingScooty/following{/other_user}","gists_url":"https://api.github.com/users/KingScooty/gists{/gist_id}","starred_url":"https://api.github.com/users/KingScooty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingScooty/subscriptions","organizations_url":"https://api.github.com/users/KingScooty/orgs","repos_url":"https://api.github.com/users/KingScooty/repos","events_url":"https://api.github.com/users/KingScooty/events{/privacy}","received_events_url":"https://api.github.com/users/KingScooty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2011-04-07T14:08:37Z","updated_at":"2015-11-04T05:31:38Z","closed_at":null,"body":"Just tried this JSS script out to try and make some jquery hover functions a little bit more streamlined with the CSS styles already set.\r\n\r\nI seem to be getting the following error:\r\n\r\nrules[i].selectorText is undefined\r\n\r\nAt first i thought it was because i was referencing an element that didn't exist, but that's now not the case.\r\n\r\nvar linksHoverColour = jss('#links li a:hover').get()['color'];\r\n\r\nAm i using the code correctly?"},"comment":{"url":"https://api.github.com/repos/Box9/jss/issues/comments/153578983","html_url":"https://github.com/Box9/jss/issues/2#issuecomment-153578983","issue_url":"https://api.github.com/repos/Box9/jss/issues/2","id":153578983,"user":{"login":"BlackMagic","id":333647,"avatar_url":"https://avatars.githubusercontent.com/u/333647?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackMagic","html_url":"https://github.com/BlackMagic","followers_url":"https://api.github.com/users/BlackMagic/followers","following_url":"https://api.github.com/users/BlackMagic/following{/other_user}","gists_url":"https://api.github.com/users/BlackMagic/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackMagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackMagic/subscriptions","organizations_url":"https://api.github.com/users/BlackMagic/orgs","repos_url":"https://api.github.com/users/BlackMagic/repos","events_url":"https://api.github.com/users/BlackMagic/events{/privacy}","received_events_url":"https://api.github.com/users/BlackMagic/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T05:31:38Z","updated_at":"2015-11-04T05:31:38Z","body":"I had the same problem reading a local stylesheet. My JavaScript code for traversing the stylesheet returned undefined and quit when it encountered a rule starting with an ampersand: @keyframes.\r\n\r\nI don't know any way around this problem."}}