[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
---|
| 4 |
|
---|
| 5 | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
---|
| 6 |
|
---|
| 7 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
---|
| 8 |
|
---|
| 9 | var Selector = require('../selector');
|
---|
| 10 |
|
---|
| 11 | var Fullscreen = /*#__PURE__*/function (_Selector) {
|
---|
| 12 | _inheritsLoose(Fullscreen, _Selector);
|
---|
| 13 |
|
---|
| 14 | function Fullscreen() {
|
---|
| 15 | return _Selector.apply(this, arguments) || this;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | var _proto = Fullscreen.prototype;
|
---|
| 19 |
|
---|
| 20 | /**
|
---|
| 21 | * Return different selectors depend on prefix
|
---|
| 22 | */
|
---|
| 23 | _proto.prefixed = function prefixed(prefix) {
|
---|
| 24 | if (prefix === '-webkit-') {
|
---|
| 25 | return ':-webkit-full-screen';
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | if (prefix === '-moz-') {
|
---|
| 29 | return ':-moz-full-screen';
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | return ":" + prefix + "fullscreen";
|
---|
| 33 | };
|
---|
| 34 |
|
---|
| 35 | return Fullscreen;
|
---|
| 36 | }(Selector);
|
---|
| 37 |
|
---|
| 38 | _defineProperty(Fullscreen, "names", [':fullscreen']);
|
---|
| 39 |
|
---|
| 40 | module.exports = Fullscreen; |
---|