dist/js/materialize.js
function Component(classDef, el, options) {
    _classCallCheck(this, Component);

    // Display error if el is valid HTML Element
    if (!(el instanceof Element)) {
      console.error(Error(el + ' is not an HTML Element'));
    }

    // If exists, destroy and reinitialize in child
    var ins = classDef.getInstance(el);
    if (!!ins) {
      ins.destroy();
    }

    this.el = el;
    this.$el = cash(el);
  }
function Component(classDef, el, options) {
    _classCallCheck(this, Component);

    // Display error if el is valid HTML Element
    if (!(el instanceof Element)) {
      console.error(Error(el + ' is not an HTML Element'));
    }

    // If exists, destroy and reinitialize in child
    var ins = classDef.getInstance(el);
    if (!!ins) {
      ins.destroy();
    }

    this.el = el;
    this.$el = cash(el);
  }
function Component ( classDef , el , options ) { _classCallCheck ( this , Component ) ; // Display error if el is valid HTML Element if ( ! ( el instanceof Element ) ) { console . error ( Error ( el + ' is not an HTML Element' ) ) ; } // If exists, destroy and reinitialize in child var ins = classDef . getInstance ( el ) ; if ( ! ! ins ) { ins . destroy ( ) ; } this . el = el ; this . $el = cash ( el ) ; }
Generic constructor for all components
@constructor
@param {Element} el
@param {Object} options
Generic constructor for all components