splitter.js
function Splitter (queue, splits) {
    this._shifter = queue.shifter()
    this._map = {}
    this._array = []
    for (var key in splits) {
        var queue = new Procession
        var split = {
            selector: splits[key],
            queue: queue,
            shifter: queue.shifter()
        }
        this._map[key] = split
        this._array.push(split)
    }
}
function Splitter (queue, splits) {
    this._shifter = queue.shifter()
    this._map = {}
    this._array = []
    for (var key in splits) {
        var queue = new Procession
        var split = {
            selector: splits[key],
            queue: queue,
            shifter: queue.shifter()
        }
        this._map[key] = split
        this._array.push(split)
    }
}
function Splitter ( queue , splits ) { this . _shifter = queue . shifter ( ) this . _map = { } this . _array = [ ] for ( var key in splits ) { var queue = new Procession var split = { selector : splits [ key ] , queue : queue , shifter : queue . shifter ( ) } this . _map [ key ] = split this . _array . push ( split ) } }
Create a splitter that will split the given queue.
Create a splitter that will split the given queue .