//>>built
define("dojox/form/Rating",["dojo/_base/declare","dojo/_base/lang","dojo/dom-attr","dojo/dom-class","dojo/string","dojo/query","dijit/form/_FormWidget"],function(_1,_2,_3,_4,_5,_6,_7){
return _1("dojox.form.Rating",_7,{templateString:null,numStars:3,value:0,constructor:function(_8){
_2.mixin(this,_8);
var _9="
";
var _a="";
var _b="";
for(var i=0;i_e){
_4.remove(_10,"dojoxRatingStarHover");
_4.remove(_10,"dojoxRatingStarChecked");
}else{
_4.remove(_10,"dojoxRatingStar"+(_f?"Checked":"Hover"));
_4.add(_10,"dojoxRatingStar"+(_f?"Hover":"Checked"));
}
});
},onStarClick:function(evt){
var _11=+_3.get(evt.target,"value");
this.setAttribute("value",_11==this.value?0:_11);
this._renderStars(this.value);
this.onChange(this.value);
},onMouseOver:function(){
},setAttribute:function(key,_12){
this.set(key,_12);
if(key=="value"){
this._renderStars(this.value);
this.onChange(this.value);
}
}});
});