How to use the babel-runtime/helpers/classCallCheck function in babel-runtime

To help you get started, we’ve selected a few babel-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-table / es / TableCell.js View on Github external
function TableCell() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TableCell);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TableCell.__proto__ || Object.getPrototypeOf(TableCell)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
      var _this$props = _this.props,
          record = _this$props.record,
          onCellClick = _this$props.column.onCellClick;

      if (onCellClick) {
        onCellClick(record, e);
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-checkbox / es / Checkbox.js View on Github external
function Checkbox(props) {
    _classCallCheck(this, Checkbox);

    var _this = _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).call(this, props));

    _initialiseProps.call(_this);

    var checked = 'checked' in props ? props.checked : props.defaultChecked;

    _this.state = {
      checked: checked
    };
    return _this;
  }
github axa-ch / patterns-library / lib / components / a-input / index.js View on Github external
function AXAInput() {
    _classCallCheck(this, AXAInput);

    return _possibleConstructorReturn(this, (AXAInput.__proto__ || _Object$getPrototypeOf(AXAInput)).call(this, { styles: styles, template: template }));
  }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-trigger / es / LazyRenderBox.js View on Github external
function LazyRenderBox() {
    _classCallCheck(this, LazyRenderBox);

    return _possibleConstructorReturn(this, (LazyRenderBox.__proto__ || Object.getPrototypeOf(LazyRenderBox)).apply(this, arguments));
  }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / antd / es / tag / CheckableTag.js View on Github external
function CheckableTag() {
        _classCallCheck(this, CheckableTag);

        var _this = _possibleConstructorReturn(this, (CheckableTag.__proto__ || Object.getPrototypeOf(CheckableTag)).apply(this, arguments));

        _this.handleClick = function () {
            var _this$props = _this.props,
                checked = _this$props.checked,
                onChange = _this$props.onChange;

            if (onChange) {
                onChange(!checked);
            }
        };
        return _this;
    }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-form / es / createFieldsStore.js View on Github external
function FieldsStore(fields) {
    _classCallCheck(this, FieldsStore);

    _initialiseProps.call(this);

    this.fields = fields;
    this.fieldsMeta = {};
  }
github axa-ch / patterns-library / lib / components / m-accordion-item / index.js View on Github external
function AXAAccordionItem() {
    _classCallCheck(this, AXAAccordionItem);

    var _this = _possibleConstructorReturn(this, (AXAAccordionItem.__proto__ || _Object$getPrototypeOf(AXAAccordionItem)).call(this, { styles: styles, template: template }));

    _this.consumeContext('axa-accordion');
    return _this;
  }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / antd / es / card / index.js View on Github external
function Card() {
        _classCallCheck(this, Card);

        var _this = _possibleConstructorReturn(this, (Card.__proto__ || Object.getPrototypeOf(Card)).apply(this, arguments));

        _this.state = {
            widerPadding: false
        };
        _this.saveRef = function (node) {
            _this.container = node;
        };
        return _this;
    }
github axa-ch / patterns-library / lib / js / abstract / base-component.js View on Github external
function BaseComponent(options) {
    _classCallCheck(this, BaseComponent);

    var _this = _possibleConstructorReturn(this, (BaseComponent.__proto__ || _Object$getPrototypeOf(BaseComponent)).call(this, options));

    _this._id = getId(_this.nodeName);
    return _this;
  }
github forestturner / PokerHandRangeCalc / node_modules / react-bootstrap / es / Nav.js View on Github external
function Nav() {
    _classCallCheck(this, Nav);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }