Security update for Core, with self-updated composer
[yaffs-website] / node_modules / video.js / es5 / control-bar / spacer-controls / custom-control-spacer.js
1 'use strict';
2
3 exports.__esModule = true;
4
5 var _spacer = require('./spacer.js');
6
7 var _spacer2 = _interopRequireDefault(_spacer);
8
9 var _component = require('../../component.js');
10
11 var _component2 = _interopRequireDefault(_component);
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 custom-control-spacer.js
21                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 */
22
23
24 /**
25  * Spacer specifically meant to be used as an insertion point for new plugins, etc.
26  *
27  * @extends Spacer
28  */
29 var CustomControlSpacer = function (_Spacer) {
30   _inherits(CustomControlSpacer, _Spacer);
31
32   function CustomControlSpacer() {
33     _classCallCheck(this, CustomControlSpacer);
34
35     return _possibleConstructorReturn(this, _Spacer.apply(this, arguments));
36   }
37
38   /**
39    * Builds the default DOM `className`.
40    *
41    * @return {string}
42    *         The DOM `className` for this object.
43    */
44   CustomControlSpacer.prototype.buildCSSClass = function buildCSSClass() {
45     return 'vjs-custom-control-spacer ' + _Spacer.prototype.buildCSSClass.call(this);
46   };
47
48   /**
49    * Create the `Component`'s DOM element
50    *
51    * @return {Element}
52    *         The element that was created.
53    */
54
55
56   CustomControlSpacer.prototype.createEl = function createEl() {
57     var el = _Spacer.prototype.createEl.call(this, {
58       className: this.buildCSSClass()
59     });
60
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 = ' ';
64     return el;
65   };
66
67   return CustomControlSpacer;
68 }(_spacer2['default']);
69
70 _component2['default'].registerComponent('CustomControlSpacer', CustomControlSpacer);
71 exports['default'] = CustomControlSpacer;