src/javascripts/modules/jquery.selectBoxIt.core.js
function() {

                    var currentElem = self.list.find("li[data-val='" + self.dropdownText.attr("data-val") + "']"),
                        activeElem;

                    // If no current element can be found, then select the first drop down option
                    if(!currentElem.length) {

                        // Sets the default value of the dropdown list to the first option that is not disabled
                        currentElem = self.listItems.not("[data-disabled=true]").first();

                    }

                    self.currentFocus = +currentElem.attr("data-id");

                    activeElem = self.listItems.eq(self.currentFocus);

                    self.dropdown.addClass(openClass).

                    // Removes the focus class from the dropdown list and adds the library focus class for both the dropdown list and the currently selected dropdown list option
                    removeClass(hoverClass).addClass(focusClass);

                    self.listItems.removeClass(self.selectedClass).

                    removeAttr("data-active").not(activeElem).removeClass(focusClass);

                    activeElem.addClass(self.selectedClass).addClass(focusClass);

                    if(self.options.hideCurrent) {
                        activeElem.hide().promise().done(function () {
                            self.listItems.show();
                        });
                    }

                }
function() {

                    var currentElem = self.list.find("li[data-val='" + self.dropdownText.attr("data-val") + "']"),
                        activeElem;

                    // If no current element can be found, then select the first drop down option
                    if(!currentElem.length) {

                        // Sets the default value of the dropdown list to the first option that is not disabled
                        currentElem = self.listItems.not("[data-disabled=true]").first();

                    }

                    self.currentFocus = +currentElem.attr("data-id");

                    activeElem = self.listItems.eq(self.currentFocus);

                    self.dropdown.addClass(openClass).

                    // Removes the focus class from the dropdown list and adds the library focus class for both the dropdown list and the currently selected dropdown list option
                    removeClass(hoverClass).addClass(focusClass);

                    self.listItems.removeClass(self.selectedClass).

                    removeAttr("data-active").not(activeElem).removeClass(focusClass);

                    activeElem.addClass(self.selectedClass).addClass(focusClass);

                    if(self.options.hideCurrent) {
                        activeElem.hide().promise().done(function () {
                            self.listItems.show();
                        });
                    }

                }
function ( ) { var currentElem = self . list . find ( "li[data-val='" + self . dropdownText . attr ( "data-val" ) + "']" ) , activeElem ; // If no current element can be found, then select the first drop down option if ( ! currentElem . length ) { // Sets the default value of the dropdown list to the first option that is not disabled currentElem = self . listItems . not ( "[data-disabled=true]" ) . first ( ) ; } self . currentFocus = + currentElem . attr ( "data-id" ) ; activeElem = self . listItems . eq ( self . currentFocus ) ; self . dropdown . addClass ( openClass ) . // Removes the focus class from the dropdown list and adds the library focus class for both the dropdown list and the currently selected dropdown list option removeClass ( hoverClass ) . addClass ( focusClass ) ; self . listItems . removeClass ( self . selectedClass ) . removeAttr ( "data-active" ) . not ( activeElem ) . removeClass ( focusClass ) ; activeElem . addClass ( self . selectedClass ) . addClass ( focusClass ) ; if ( self . options . hideCurrent ) { activeElem . hide ( ) . promise ( ) . done ( function ( ) { self . listItems . show ( ) ; } ) ; } }
`open` event with the `selectBoxIt` namespace
open event with the selectBoxIt namespace