code: function (suppliedOptions) {
          var that = this;
  
          $.extend(that.options, suppliedOptions);
  
          that['type'] = types.get(that.options['type']);
  
          // Check mandatory options
          $.each({
              'requestMode': requestModes
          }, function (option, available) {
              that[option] = available[that.options[option]];
              if (!that[option]) {
                  that.disable();
                  throw '`' + option + '` option is incorrect! Must be one of: ' + $.map(available, function (value, name) {
                      return '"' + name + '"';
                  }).join(', ');
              }
          });
  
          $(that.options.$helpers)
              .off(EVENT_NS)
              .on('mousedown' + EVENT_NS, $.proxy(that.onMousedown, that));
  
          if (that.isInitialized()) {
              that.notify('setOptions');
          }
      }
docs: Configuration methods