3 exports.__esModule = true;
5 var _component = require('../../component.js');
7 var _component2 = _interopRequireDefault(_component);
9 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
11 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13 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; }
15 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; } /**
16 * @file time-divider.js
21 * The separator between the current time and duration.
22 * Can be hidden if it's not needed in the design.
26 var TimeDivider = function (_Component) {
27 _inherits(TimeDivider, _Component);
29 function TimeDivider() {
30 _classCallCheck(this, TimeDivider);
32 return _possibleConstructorReturn(this, _Component.apply(this, arguments));
36 * Create the component's DOM element
39 * The element that was created.
41 TimeDivider.prototype.createEl = function createEl() {
42 return _Component.prototype.createEl.call(this, 'div', {
43 className: 'vjs-time-control vjs-time-divider',
44 innerHTML: '<div><span>/</span></div>'
49 }(_component2['default']);
51 _component2['default'].registerComponent('TimeDivider', TimeDivider);
52 exports['default'] = TimeDivider;