source: trip-planner-front/node_modules/autoprefixer/lib/hacks/placeholder-shown.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1"use strict";
2
3function _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
5function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
7function _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
9var Selector = require('../selector');
10
11var PlaceholderShown = /*#__PURE__*/function (_Selector) {
12 _inheritsLoose(PlaceholderShown, _Selector);
13
14 function PlaceholderShown() {
15 return _Selector.apply(this, arguments) || this;
16 }
17
18 var _proto = PlaceholderShown.prototype;
19
20 /**
21 * Return different selectors depend on prefix
22 */
23 _proto.prefixed = function prefixed(prefix) {
24 if (prefix === '-ms-') {
25 return ':-ms-input-placeholder';
26 }
27
28 return ":" + prefix + "placeholder-shown";
29 };
30
31 return PlaceholderShown;
32}(Selector);
33
34_defineProperty(PlaceholderShown, "names", [':placeholder-shown']);
35
36module.exports = PlaceholderShown;
Note: See TracBrowser for help on using the repository browser.