{"action":"created","issue":{"url":"https://api.github.com/repos/jwarby/jquery-awesome-cursor/issues/13","labels_url":"https://api.github.com/repos/jwarby/jquery-awesome-cursor/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/jwarby/jquery-awesome-cursor/issues/13/comments","events_url":"https://api.github.com/repos/jwarby/jquery-awesome-cursor/issues/13/events","html_url":"https://github.com/jwarby/jquery-awesome-cursor/issues/13","id":74464495,"number":13,"title":"Just an idea on how to implement it differently","user":{"login":"cauerego","id":560418,"avatar_url":"https://avatars.githubusercontent.com/u/560418?v=3","gravatar_id":"","url":"https://api.github.com/users/cauerego","html_url":"https://github.com/cauerego","followers_url":"https://api.github.com/users/cauerego/followers","following_url":"https://api.github.com/users/cauerego/following{/other_user}","gists_url":"https://api.github.com/users/cauerego/gists{/gist_id}","starred_url":"https://api.github.com/users/cauerego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cauerego/subscriptions","organizations_url":"https://api.github.com/users/cauerego/orgs","repos_url":"https://api.github.com/users/cauerego/repos","events_url":"https://api.github.com/users/cauerego/events{/privacy}","received_events_url":"https://api.github.com/users/cauerego/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-08T19:16:58Z","updated_at":"2015-05-27T01:24:18Z","closed_at":null,"body":"Wouldn't it make more sense to use it upon fa tag?\r\n\r\nSomething like this:\r\n\r\n```\r\n<i id=\"useme\" class=\"fa fa-rss\"></i>\r\n<script>\r\n  $('#useme').awesomeCursor({'hotspot', 'center'});\r\n</script>\r\n```\r\n\r\nIt would check if it's an `i.fa` and only execute then. Else, throw an error.\r\n\r\nWhat you think?"},"comment":{"url":"https://api.github.com/repos/jwarby/jquery-awesome-cursor/issues/comments/105711062","html_url":"https://github.com/jwarby/jquery-awesome-cursor/issues/13#issuecomment-105711062","issue_url":"https://api.github.com/repos/jwarby/jquery-awesome-cursor/issues/13","id":105711062,"user":{"login":"jwarby","id":617098,"avatar_url":"https://avatars.githubusercontent.com/u/617098?v=3","gravatar_id":"","url":"https://api.github.com/users/jwarby","html_url":"https://github.com/jwarby","followers_url":"https://api.github.com/users/jwarby/followers","following_url":"https://api.github.com/users/jwarby/following{/other_user}","gists_url":"https://api.github.com/users/jwarby/gists{/gist_id}","starred_url":"https://api.github.com/users/jwarby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwarby/subscriptions","organizations_url":"https://api.github.com/users/jwarby/orgs","repos_url":"https://api.github.com/users/jwarby/repos","events_url":"https://api.github.com/users/jwarby/events{/privacy}","received_events_url":"https://api.github.com/users/jwarby/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T01:24:18Z","updated_at":"2015-05-27T01:24:18Z","body":"Which bits of FA aren't covered by the current implementation?  From looking at the docs, the only thing it seems to be missing is stacked icons, which I didn't feel would be worth the effort to implement.  The current implementation doesn't allow you to set custom CSS though, if that's what you were referring to....\r\n\r\nI do quite like this second idea, but I would want to implement it alongside the existing API somehow.  The use case that I built the plugin for was a drawing application; I wanted to define the default styles of the cursor easily by overriding `$.fn.awesomeCursor.defaults`, so I could then do something along the lines of: `$('canvas#editor').awesomeCursor('pencil')`.  I also didn't want to force the user into having extra icons in the DOM that they may not need or want.\r\n\r\nIdeally, it would be great to support this automagically, whereby the `awesomeCursor` function figures out that it's been given a selector and not an icon name.  Unfortunately, there's no nice way to know if something is a valid selector - the most robust solution I have seen involves trying to use the string regardless, then catching the error that jQuery throws if it's invalid (see [this Stack Overflow answer](http://stackoverflow.com/questions/6283255/determine-if-a-string-is-a-valid-jquery-selector)).  We could try assuming that it is an icon name if it matches any elements or doesn't throw an error, but it sounds a bit hacky and could be unpredictable... and of course, we all know what assume makes of 'u' and 'me'"}}