assets.js
function next(error) {
    if (error) return self.emit('error', error);
    if (++i === files.length) self.emit('optimized');
  }
function next(error) {
    if (error) return self.emit('error', error);
    if (++i === files.length) self.emit('optimized');
  }
function next ( error ) { if ( error ) return self . emit ( 'error' , error ) ; if ( ++ i === files . length ) self . emit ( 'optimized' ) ; }
Callback to emit optimized event after all Pagelets have been optimized.

@param {Error} error
@api private
Callback to emit optimized event after all Pagelets have been optimized .