Skip to content

Commit

Permalink
Allow SeekBar to be subclassed and add classNames.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Sep 8, 2015
1 parent 9179bdb commit c9bd67c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/js/control-bar/progress-control/seek-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import LoadProgressBar from './load-progress-bar.js';
import PlayProgressBar from './play-progress-bar.js';
import * as Fn from '../../utils/fn.js';
import formatTime from '../../utils/format-time.js';
import assign from 'object.assign';

/**
* Seek Bar and holder for the progress bars
Expand All @@ -30,11 +31,12 @@ class SeekBar extends Slider {
* @return {Element}
* @method createEl
*/
createEl() {
return super.createEl('div', {
className: 'vjs-progress-holder',
createEl(type='div', props={}) {
props = assign({
className: 'vjs-progress-holder' + (props.className ? ' ' + props.className : ''),
'aria-label': 'video progress bar'
});
return super.createEl(type, props);
}

/**
Expand Down

0 comments on commit c9bd67c

Please sign in to comment.