code: function() {
              this.$ul.html('');
  
              // Important to distinguish between radios and checkboxes.
              this.options.multiple = this.$select.attr('multiple') === "multiple";
  
              this.buildSelectAll();
              this.buildDropdownOptions();
              this.buildFilter();
  
              this.updateButtonText();
              this.updateSelectAll();
  
              if (this.options.disableIfEmpty && $('option', this.$select).length <= 0) {
                  this.disable();
              }
              else {
                  this.enable();
              }
  
              if (this.options.dropRight) {
                  this.$ul.addClass('pull-right');
              }
          }
docs: Rebuild the plugin.
  
  Rebuilds the dropdown, the filter and the select all option.