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