vendor/assets/javascripts/dojox/mobile/SpinWheelSlot.js in dojox-rails-0.13.0 vs vendor/assets/javascripts/dojox/mobile/SpinWheelSlot.js in dojox-rails-0.14.0

- old
+ new

@@ -16,11 +16,11 @@ this.panelNodes[k]=_7.create("div",{className:"mblSpinWheelSlotPanel"}); var _b=this.items.length; var n=Math.ceil(this.minItems/_b); for(j=0;j<n;j++){ for(i=0;i<_b;i++){ -_7.create("div",{className:"mblSpinWheelSlotLabel",name:this.items[i][0],innerHTML:this._cv?this._cv(this.items[i][1]):this.items[i][1]},this.panelNodes[k]); +_7.create("div",{className:"mblSpinWheelSlotLabel",name:this.items[i][0],val:this.items[i][1],innerHTML:this._cv?this._cv(this.items[i][1]):this.items[i][1]},this.panelNodes[k]); } } this.containerNode.appendChild(this.panelNodes[k]); } this.domNode.appendChild(this.containerNode); @@ -112,12 +112,12 @@ return null; },_getKeyAttr:function(){ var _18=this.getCenterItem(); return (_18&&_18.getAttribute("name")); },_getValueAttr:function(){ -var _19=this.items[this.get("key")]; -return _19&&_19[1]; +var _19=this.getCenterItem(); +return (_19&&_19.getAttribute("val")); },_setValueAttr:function(_1a){ var _1b,_1c; var _1d=this.get("value"); if(!_1d){ this._penddingValue=_1a; @@ -143,9 +143,12 @@ m=(d<n-d)?-d:n-d; }else{ m=(-d<n+d)?-d:-(n+d); } this.spin(m); +},stopAnimation:function(){ +this.inherited(arguments); +this._set("value",this.get("value")); },spin:function(_1e){ if(!this._started){ return; } var to=this.getPos();