3 exports.__esModule = true;
5 var _spacer = require('./spacer.js');
7 var _spacer2 = _interopRequireDefault(_spacer);
9 var _component = require('../../component.js');
11 var _component2 = _interopRequireDefault(_component);
13 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
15 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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; }
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 custom-control-spacer.js
25 * Spacer specifically meant to be used as an insertion point for new plugins, etc.
29 var CustomControlSpacer = function (_Spacer) {
30 _inherits(CustomControlSpacer, _Spacer);
32 function CustomControlSpacer() {
33 _classCallCheck(this, CustomControlSpacer);
35 return _possibleConstructorReturn(this, _Spacer.apply(this, arguments));
39 * Builds the default DOM `className`.
42 * The DOM `className` for this object.
44 CustomControlSpacer.prototype.buildCSSClass = function buildCSSClass() {
45 return 'vjs-custom-control-spacer ' + _Spacer.prototype.buildCSSClass.call(this);
49 * Create the `Component`'s DOM element
52 * The element that was created.
56 CustomControlSpacer.prototype.createEl = function createEl() {
57 var el = _Spacer.prototype.createEl.call(this, {
58 className: this.buildCSSClass()
61 // No-flex/table-cell mode requires there be some content
62 // in the cell to fill the remaining space of the table.
63 el.innerHTML = ' ';
67 return CustomControlSpacer;
68 }(_spacer2['default']);
70 _component2['default'].registerComponent('CustomControlSpacer', CustomControlSpacer);
71 exports['default'] = CustomControlSpacer;