Security update for Core, with self-updated composer
[yaffs-website] / node_modules / video.js / es5 / control-bar / progress-control / progress-control.js
1 'use strict';
2
3 exports.__esModule = true;
4
5 var _component = require('../../component.js');
6
7 var _component2 = _interopRequireDefault(_component);
8
9 require('./seek-bar.js');
10
11 require('./mouse-time-display.js');
12
13 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
14
15 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
17 function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18
19 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
20                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * @file progress-control.js
21                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 */
22
23
24 /**
25  * The Progress Control component contains the seek bar, load progress,
26  * and play progress.
27  *
28  * @extends Component
29  */
30 var ProgressControl = function (_Component) {
31   _inherits(ProgressControl, _Component);
32
33   function ProgressControl() {
34     _classCallCheck(this, ProgressControl);
35
36     return _possibleConstructorReturn(this, _Component.apply(this, arguments));
37   }
38
39   /**
40    * Create the `Component`'s DOM element
41    *
42    * @return {Element}
43    *         The element that was created.
44    */
45   ProgressControl.prototype.createEl = function createEl() {
46     return _Component.prototype.createEl.call(this, 'div', {
47       className: 'vjs-progress-control vjs-control'
48     });
49   };
50
51   return ProgressControl;
52 }(_component2['default']);
53
54 /**
55  * Default options for `ProgressControl`
56  *
57  * @type {Object}
58  * @private
59  */
60
61
62 ProgressControl.prototype.options_ = {
63   children: ['seekBar']
64 };
65
66 _component2['default'].registerComponent('ProgressControl', ProgressControl);
67 exports['default'] = ProgressControl;