wbotelhos/raty — Issue #27: Raty problems with multiple instances?
Author: felixchan
Created: 2011-12-12 10:41:52+00:00
State: open

Hi, when I do multiple instances of raty, it seems like Raty adds a half star even though it's a solid rating (4.0/3.0/2.0).

```javascript
$(function(){
$('.star').each(function(el){
$(this).raty({
readOnly:true,
path: 'media/template/js/raty/img',
start: $(this).attr('data-rating'))
});
});
});
```

```

{{ r.rating }}
```

Here's an image: http://i.imgur.com/EXXlY.png (the score next to the stars is the string sent to Raty)

I've tried different things, like parseFloat(), Number(), String(), stripping the text, etc...but this problem still stays.

Any ideas? Thanks !