code: function( option, value ) {
              var curr = this.data( dataName ).options || {},
                  prev = $.extend( {}, curr );
  
              if ( typeof option === "string" && option[ 0 ] !== "_" ) {
                  if ( value === undefined ) {
                      return curr[ option ];
                  } else {
                      curr[ option ] = value;
                      updateOptions( this, prev, curr );
  
                      return this;
                  }
              } else if ( $.isPlainObject( option ) ) {
                  $.extend( curr, option );
                  updateOptions( this, prev, curr );
  
                  this.data( dataName ).options = curr;
              }
  
              return curr;
          }
docs: Get/set options of the component