florianv / nano-bar

Nanobar as a Polymer element

Home Page:http://florianv.github.io/nano-bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

targetId doesn't seem to work

elsigh opened this issue · comments

I did targetId="nano-bar" and then did
$('nano-bar').get(0).go(50);

I see my bar, but $('#nano-bar') returns nada.

In the demo there is a working example of targetId:

https://github.com/florianv/nano-bar/blob/master/demo.html#L44
https://github.com/florianv/nano-bar/blob/master/demo.html#L62

It works here when using jQuery var secondBar = $('#second').get(0);.

Yes, this is my bad - I thought targetId was going to give me an ID to use CSS to target the bar with somehow. Sorry about that.