Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / node_modules / video.js / es5 / loading-spinner.js
1 'use strict';
2
3 exports.__esModule = true;
4
5 var _component = require('./component');
6
7 var _component2 = _interopRequireDefault(_component);
8
9 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
10
11 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
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; }
14
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 loading-spinner.js
17                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 */
18
19
20 /**
21  * A loading spinner for use during waiting/loading events.
22  *
23  * @extends Component
24  */
25 var LoadingSpinner = function (_Component) {
26   _inherits(LoadingSpinner, _Component);
27
28   function LoadingSpinner() {
29     _classCallCheck(this, LoadingSpinner);
30
31     return _possibleConstructorReturn(this, _Component.apply(this, arguments));
32   }
33
34   /**
35    * Create the `LoadingSpinner`s DOM element.
36    *
37    * @return {Element}
38    *         The dom element that gets created.
39    */
40   LoadingSpinner.prototype.createEl = function createEl() {
41     return _Component.prototype.createEl.call(this, 'div', {
42       className: 'vjs-loading-spinner',
43       dir: 'ltr'
44     });
45   };
46
47   return LoadingSpinner;
48 }(_component2['default']);
49
50 _component2['default'].registerComponent('LoadingSpinner', LoadingSpinner);
51 exports['default'] = LoadingSpinner;