Permalink
Browse files

fixes #2531568 - now change ARIA values with .setAttribute instead of…

… .set
  • Loading branch information...
jconniff committed Mar 20, 2012
1 parent df91dbc commit 0725a936e79c1ff74627a56d59c60e219016d7ca
Showing with 6 additions and 6 deletions.
  1. +4 −4 src/dial/js/Dial.js
  2. +2 −2 src/dial/tests/manual/simplest_1dial.html
View
@@ -380,8 +380,8 @@
// init
this._setTimesWrappedFromValue(this._originalValue);
- this._handleNode.set('aria-valuemin', this._minValue);
- this._handleNode.set('aria-valuemax', this._maxValue);
+ this._handleNode.setAttribute('aria-valuemin', this._minValue);
+ this._handleNode.setAttribute('aria-valuemax', this._maxValue);
},
/**
@@ -1249,8 +1249,8 @@
this._prevAng = this._getAngleFromValue(this.get('value'));
}
this._valueStringNode.setContent(val.toFixed(this.get('decimalPlaces'))); // [#2530045]
- this._handleNode.set('aria-valuenow', val);
- this._handleNode.set('aria-valuetext', val);
+ this._handleNode.setAttribute('aria-valuenow', val);
+ this._handleNode.setAttribute('aria-valuetext', val);
this._setNodeToFixedRadius(this._markerNode, false);
if((val === this._maxValue) || (val === this._minValue)){
this._markerNode.addClass(Dial.CSS_CLASSES.markerMaxMin);
@@ -17,8 +17,8 @@
</body>
</html>
<script>
- // {filter:'raw'}
- YUI().use("dial", function(Y) { //, filter:'raw' this make it really hard to clear cache on iPad
+ //
+ YUI({filter:'raw'}).use("dial", function(Y) { //, filter:'raw' this make it really hard to clear cache on iPad
var dial = new Y.Dial({
});
dial.render(".dial-container");

0 comments on commit 0725a93

Please sign in to comment.