docs/vendor/mixitup/mixitup.js
function(command, state) {
            var self                    = this,
                activeFilterSelector    = '';

            self.callActions('beforeBuildToggleArray', arguments);

            if (command && command.filter) {
                activeFilterSelector = command.filter.selector.replace(/\s/g, '');
            } else if (state) {
                activeFilterSelector = state.activeFilter.selector.replace(/\s/g, '');
            } else {
                return;
            }

            if (activeFilterSelector === self.config.selectors.target || activeFilterSelector === 'all') {
                activeFilterSelector = '';
            }

            if (self.config.controls.toggleLogic === 'or') {
                self.toggleArray = activeFilterSelector.split(',');
            } else {
                self.toggleArray = self.splitCompoundSelector(activeFilterSelector);
            }

            self.toggleArray = h.clean(self.toggleArray);

            self.callActions('afterBuildToggleArray', arguments);
        }
function(command, state) {
            var self                    = this,
                activeFilterSelector    = '';

            self.callActions('beforeBuildToggleArray', arguments);

            if (command && command.filter) {
                activeFilterSelector = command.filter.selector.replace(/\s/g, '');
            } else if (state) {
                activeFilterSelector = state.activeFilter.selector.replace(/\s/g, '');
            } else {
                return;
            }

            if (activeFilterSelector === self.config.selectors.target || activeFilterSelector === 'all') {
                activeFilterSelector = '';
            }

            if (self.config.controls.toggleLogic === 'or') {
                self.toggleArray = activeFilterSelector.split(',');
            } else {
                self.toggleArray = self.splitCompoundSelector(activeFilterSelector);
            }

            self.toggleArray = h.clean(self.toggleArray);

            self.callActions('afterBuildToggleArray', arguments);
        }
function ( command , state ) { var self = this , activeFilterSelector = '' ; self . callActions ( 'beforeBuildToggleArray' , arguments ) ; if ( command && command . filter ) { activeFilterSelector = command . filter . selector . replace ( / \s / g , '' ) ; } else if ( state ) { activeFilterSelector = state . activeFilter . selector . replace ( / \s / g , '' ) ; } else { return ; } if ( activeFilterSelector === self . config . selectors . target || activeFilterSelector === 'all' ) { activeFilterSelector = '' ; } if ( self . config . controls . toggleLogic === 'or' ) { self . toggleArray = activeFilterSelector . split ( ',' ) ; } else { self . toggleArray = self . splitCompoundSelector ( activeFilterSelector ) ; } self . toggleArray = h . clean ( self . toggleArray ) ; self . callActions ( 'afterBuildToggleArray' , arguments ) ; }
Breaks compound selector strings in an array of discreet selectors,
as per the active `controls.toggleLogic` configuration option. Accepts
either a dynamic command object, or a state object.

@private
@instance
@since   2.0.0
@param   {object}        [command]
@param   {mixitup.State} [state]
@return  {void}
Breaks compound selector strings in an array of discreet selectors as per the active controls . toggleLogic configuration option . Accepts either a dynamic command object or a state object .