dist/quenda.js
function(config, name) {
            if (config && config !== Object(config)) {
                throw new Error('Config object should be a key/value object.');
            }

            var defaultConfig = {
                loop: false,
                maxLoops: Infinity
            };

            var instance = Object.create(Queue);

            this.queues.push(name ? {
                name: name,
                instance: instance
            } : {
                instance: instance
            });

            merge(instance, {
                config: merge({}, defaultConfig, config),
                steps: []
            });

            return instance;
        }
function(config, name) {
            if (config && config !== Object(config)) {
                throw new Error('Config object should be a key/value object.');
            }

            var defaultConfig = {
                loop: false,
                maxLoops: Infinity
            };

            var instance = Object.create(Queue);

            this.queues.push(name ? {
                name: name,
                instance: instance
            } : {
                instance: instance
            });

            merge(instance, {
                config: merge({}, defaultConfig, config),
                steps: []
            });

            return instance;
        }
function ( config , name ) { if ( config && config !== Object ( config ) ) { throw new Error ( 'Config object should be a key/value object.' ) ; } var defaultConfig = { loop : false , maxLoops : Infinity } ; var instance = Object . create ( Queue ) ; this . queues . push ( name ? { name : name , instance : instance } : { instance : instance } ) ; merge ( instance , { config : merge ( { } , defaultConfig , config ) , steps : [ ] } ) ; return instance ; }
Create a new queue
@param  {Object} [config] The queue configuration
@param  {[type]} [name] The queue name
@return {[type]} The queue instance
Create a new queue