www/lib/js/materialize.js
function Select(el, options) {
      _classCallCheck(this, Select);

      // Don't init if browser default version
      var _this16 = _possibleConstructorReturn(this, (Select.__proto__ || Object.getPrototypeOf(Select)).call(this, Select, el, options));

      if (_this16.$el.hasClass('browser-default')) {
        return _possibleConstructorReturn(_this16);
      }

      _this16.el.M_Select = _this16;

      /**
       * Options for the select
       * @member Select#options
       */
      _this16.options = $.extend({}, Select.defaults, options);

      _this16.isMultiple = _this16.$el.prop('multiple');

      // Setup
      _this16.el.tabIndex = -1;
      _this16._keysSelected = {};
      _this16._valueDict = {}; // Maps key to original and generated option element.
      _this16._setupDropdown();

      _this16._setupEventHandlers();
      return _this16;
    }
function Select(el, options) {
      _classCallCheck(this, Select);

      // Don't init if browser default version
      var _this16 = _possibleConstructorReturn(this, (Select.__proto__ || Object.getPrototypeOf(Select)).call(this, Select, el, options));

      if (_this16.$el.hasClass('browser-default')) {
        return _possibleConstructorReturn(_this16);
      }

      _this16.el.M_Select = _this16;

      /**
       * Options for the select
       * @member Select#options
       */
      _this16.options = $.extend({}, Select.defaults, options);

      _this16.isMultiple = _this16.$el.prop('multiple');

      // Setup
      _this16.el.tabIndex = -1;
      _this16._keysSelected = {};
      _this16._valueDict = {}; // Maps key to original and generated option element.
      _this16._setupDropdown();

      _this16._setupEventHandlers();
      return _this16;
    }
function Select ( el , options ) { _classCallCheck ( this , Select ) ; // Don't init if browser default version var _this16 = _possibleConstructorReturn ( this , ( Select . __proto__ || Object . getPrototypeOf ( Select ) ) . call ( this , Select , el , options ) ) ; if ( _this16 . $el . hasClass ( 'browser-default' ) ) { return _possibleConstructorReturn ( _this16 ) ; } _this16 . el . M_Select = _this16 ; /**
       * Options for the select
       * @member Select#options
       */ _this16 . options = $ . extend ( { } , Select . defaults , options ) ; _this16 . isMultiple = _this16 . $el . prop ( 'multiple' ) ; // Setup _this16 . el . tabIndex = - 1 ; _this16 . _keysSelected = { } ; _this16 . _valueDict = { } ; // Maps key to original and generated option element. _this16 . _setupDropdown ( ) ; _this16 . _setupEventHandlers ( ) ; return _this16 ; }
Construct Select instance
@constructor
@param {Element} el
@param {Object} options
Construct Select instance