e.nodeName is undefined
[Break On This Error] (function(a,<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='B)' />{function cy(a){return f...h]&&f.event.trigger(c,d,b.handle.elem
The callback function is called every time a "star" is clicked… but even when the "remove vote" is clicked…
At the time when you click the "remove vote" $(this) is not any more the input of the stars but the button itself (a link)… and this one does not have a value… so at that time $(this).val() fires an error in jQuery
This is very dirty solution… but I was not able to retrive $(this) parents or closest div or something that will make it possible to somhow figure out if it has value or not directly…
Maybe in the future I will fight with it more to make it cleaner… just not wanted to waste more time on that issue… and the try catch was the simplest way…
maybe just type of .attr("value") !== undefined could solve it, or check if it is numeric… maybe actually I will give it some more time today…