/**
 * YepNope Path Filter
 * 
 * Usage:
 *   yepnope.paths = {
 *	   'google': '//ajax.googleapis.com/ajax',
 *	   'my-cdn': '//cdn.myawesomesite.com'
 *   };
 *   yepnope({
 *	   load: ['google/jquery/1.7.2/jquery.min.js', 'google/jqueryui/1.8.18/jquery-ui.min.js', 'my-cdn/style.css', '/non/path/directory/file.js']
 *   });
 *
 * Official Yepnope Plugin
 *
 * WTFPL License
 *
 * by Kenneth Powers | mail@kenpowers.net
 */
(function () {
  var addPathFilter = function (yn) {
      // add each prefix
      yn.addFilter(function (resource) {
        // check each url for path
        for (path in yn.paths) {
          resource.url = resource.url.replace(new RegExp('^' + path), yn.paths[path]);
          return resource;
        }
        // carry on my wayward, son
        return resource;
      });
    };
  console.log(yepnope);
  if (yepnope) addPathFilter(yepnope);
  else if (modernizr.load) addPathFilter(modernizr.load);
})();
/**
 * YepNope Path Filter
 * 
 * Usage:
 *   yepnope.paths = {
 *	   'google': '//ajax.googleapis.com/ajax',
 *	   'my-cdn': '//cdn.myawesomesite.com'
 *   };
 *   yepnope({
 *	   load: ['google/jquery/1.7.2/jquery.min.js', 'google/jqueryui/1.8.18/jquery-ui.min.js', 'my-cdn/style.css', '/non/path/directory/file.js']
 *   });
 *
 * Official Yepnope Plugin
 *
 * WTFPL License
 *
 * by Kenneth Powers | mail@kenpowers.net
 */
(function () {
  var addPathFilter = function (yn) {
      // add each prefix
      yn.addFilter(function (resource) {
        // check each url for path
        for (path in yn.paths) {
          resource.url = resource.url.replace(new RegExp('^' + path), yn.paths[path]);
          return resource;
        }
        // carry on my wayward, son
        return resource;
      });
    };
  if (yepnope) addPathFilter(yepnope);
  else if (modernizr.load) addPathFilter(modernizr.load);
})();
Remove spurious console.log from yepnope path filter
Remove spurious console.log from yepnope path filter