Commit 96d37a63 authored by Valentin Hervieu's avatar Valentin Hervieu

Merge pull request #141 from Myoxocephalus/master

Added role=slider for better accessibility.
parents acde0f8a d931318a
......@@ -284,6 +284,7 @@ function throttle(func, wait, options) {
self = this;
this.initElemHandles();
this.addAccessibility();
this.calcViewDimensions();
this.setMinAndMax();
......@@ -587,6 +588,18 @@ function throttle(func, wait, options) {
this.selBar.addClass('rz-draggable');
}
},
/**
* 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