tasks/bower-concat.js
function bowerList(kind) {
			return function(done) {
				var params = _.extend({}, bowerOptions);
				params[kind] = true;
				bower.commands.list(params, {offline: true})
					.on('error', grunt.fail.fatal.bind(grunt.fail))
					.on('end', function(data) {
						done(null, data);  // null means "no error" for async.parallel
					});
			};
		}
function bowerList(kind) {
			return function(done) {
				var params = _.extend({}, bowerOptions);
				params[kind] = true;
				bower.commands.list(params, {offline: true})
					.on('error', grunt.fail.fatal.bind(grunt.fail))
					.on('end', function(data) {
						done(null, data);  // null means "no error" for async.parallel
					});
			};
		}
function bowerList ( kind ) { return function ( done ) { var params = _ . extend ( { } , bowerOptions ) ; params [ kind ] = true ; bower . commands . list ( params , { offline : true } ) . on ( 'error' , grunt . fail . fatal . bind ( grunt . fail ) ) . on ( 'end' , function ( data ) { done ( null , data ) ; // null means "no error" for async.parallel } ) ; } ; }
Returns function that invokes `list` command of Bower API.
Should be used inside async.parallel.

@param {String} kind map|paths
@return {Function}
Returns function that invokes list command of Bower API . Should be used inside async . parallel .