src/search/FileFilters.js
function _handleListRendered(event, $dropdown) {
        var activeFilterIndex = PreferencesManager.getViewState("activeFileFilter"),
            checkedItemIndex = (activeFilterIndex > -1) ? (activeFilterIndex + FIRST_FILTER_INDEX) : -1;
        _picker.setChecked(checkedItemIndex, true);

        $dropdown.find(".filter-trash-icon")
            .on("click", _handleDeleteFilter);

        $dropdown.find(".filter-edit-icon")
            .on("click", _handleEditFilter);
    }
function _handleListRendered(event, $dropdown) {
        var activeFilterIndex = PreferencesManager.getViewState("activeFileFilter"),
            checkedItemIndex = (activeFilterIndex > -1) ? (activeFilterIndex + FIRST_FILTER_INDEX) : -1;
        _picker.setChecked(checkedItemIndex, true);

        $dropdown.find(".filter-trash-icon")
            .on("click", _handleDeleteFilter);

        $dropdown.find(".filter-edit-icon")
            .on("click", _handleEditFilter);
    }
function _handleListRendered ( event , $dropdown ) { var activeFilterIndex = PreferencesManager . getViewState ( "activeFileFilter" ) , checkedItemIndex = ( activeFilterIndex > - 1 ) ? ( activeFilterIndex + FIRST_FILTER_INDEX ) : - 1 ; _picker . setChecked ( checkedItemIndex , true ) ; $dropdown . find ( ".filter-trash-icon" ) . on ( "click" , _handleDeleteFilter ) ; $dropdown . find ( ".filter-edit-icon" ) . on ( "click" , _handleEditFilter ) ; }
Set up mouse click event listeners for 'Delete' and 'Edit' buttons
when the dropdown is open. Also set check mark on the active filter.
@param {!Event>} event listRendered event triggered when the dropdown is open
@param {!jQueryObject} $dropdown the jQuery DOM node of the dropdown list
Set up mouse click event listeners for Delete and Edit buttons when the dropdown is open . Also set check mark on the active filter .