docs: function resolveDependencies(self, paths) {
    var assets = [], cache = {};
  
    _.forEach(paths, function (p) {
      var asset;
  
      if (p === self.pathname) {
        if (!cache[p]) {
          cache[p] = true;
          assets.push(self);
        }
        return;
      }
  
      asset = self.environment.findAsset(p, { bundle: false });
  
      if (asset) {
        asset.__requiredAssets__.forEach(function (asset_dependency) {
          if (!cache[asset_dependency.pathname]) {
            cache[asset_dependency.pathname] = true;
            assets.push(asset_dependency);
          }
        });
      }
    });
  
    return assets;
  }