tasks/angular-builder.js
function assembleMiddleware (middlewareStackClasses, context)
  {
    var middlewares = [];
    middlewareStackClasses.forEach (function (MiddlewareClass)
    {
      middlewares.push (new MiddlewareClass (context));
    });
    return middlewares;
  }
function assembleMiddleware (middlewareStackClasses, context)
  {
    var middlewares = [];
    middlewareStackClasses.forEach (function (MiddlewareClass)
    {
      middlewares.push (new MiddlewareClass (context));
    });
    return middlewares;
  }
function assembleMiddleware ( middlewareStackClasses , context ) { var middlewares = [ ] ; middlewareStackClasses . forEach ( function ( MiddlewareClass ) { middlewares . push ( new MiddlewareClass ( context ) ) ; } ) ; return middlewares ; }
Creates a new instance of each loaded middleware and assembles them into a sequential list.
@param {MiddlewareInterface[]} middlewareStackClasses An ordered list of classes to be instantiated.
@param {Context} context The build execution context.
@returns {MiddlewareInterface[]}
Creates a new instance of each loaded middleware and assembles them into a sequential list .