kaman.functions.js
function commutate(key, list) {
    _.each(list, function (v, k, l) {
        if (k === key) {
            l[key] = true
        }
        if (v === true && k !== key) {
            l[k] = false
        }
    })
}
function commutate(key, list) {
    _.each(list, function (v, k, l) {
        if (k === key) {
            l[key] = true
        }
        if (v === true && k !== key) {
            l[k] = false
        }
    })
}
function commutate ( key , list ) { _ . each ( list , function ( v , k , l ) { if ( k === key ) { l [ key ] = true } if ( v === true && k !== key ) { l [ k ] = false } } ) }
this function will iterate over each list elements
setting the one on key to true an all other on false
@param key String, the key to set as true
@param list Object, the object to search for the key to set to true
@return void
this function will iterate over each list elements setting the one on key to true an all other on false