Commit d931318a authored by unknown's avatar unknown

Added role=slider for better accessibility.

parent acde0f8a
......@@ -284,6 +284,7 @@ function throttle(func, wait, options) {
self = this;
this.initElemHandles();
this.addAccessibility();
this.calcViewDimensions();
this.setMinAndMax();
......@@ -588,6 +589,18 @@ function throttle(func, wait, options) {
}
},
/**
* Adds accessibility atributes
*
* Run only once during initialization
*
* @returns {undefined}
*/
addAccessibility: function ()
{
this.sliderElem.attr("role", "slider");
},
/**
* Calculate dimensions that are dependent on view port size
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment