function (property) {
        var def = this._definition[property];
        if (def.type === 'boolean') {
            // if it's a bool, just flip it
            this[property] = !this[property];
        } else if (def && def.values) {
            // If it's a property with an array of values
            // skip to the next one looping back if at end.
            this[property] = arrayNext(def.values, this[property]);
        } else {
            throw new TypeError('Can only toggle properties that are type `boolean` or have `values` array.');
        }
        return this;
    }
function (property) {
        var def = this._definition[property];
        if (def.type === 'boolean') {
            // if it's a bool, just flip it
            this[property] = !this[property];
        } else if (def && def.values) {
            // If it's a property with an array of values
            // skip to the next one looping back if at end.
            this[property] = arrayNext(def.values, this[property]);
        } else {
            throw new TypeError('Can only toggle properties that are type `boolean` or have `values` array.');
        }
        return this;
    }
function ( property ) { var def = this . _definition [ property ] ; if ( def . type === 'boolean' ) { // if it's a bool, just flip it this [ property ] = ! this [ property ] ; } else if ( def && def . values ) { // If it's a property with an array of values // skip to the next one looping back if at end. this [ property ] = arrayNext ( def . values , this [ property ] ) ; } else { throw new TypeError ( 'Can only toggle properties that are type `boolean` or have `values` array.' ) ; } return this ; }
Toggle boolean properties or properties that have a `values` array in its definition.
Toggle boolean properties or properties that have a values array in its definition .