Permalink
Browse files

fix critical bug around http:// paths and compiler.client undefined

  • Loading branch information...
amchang committed Oct 1, 2015
1 parent 88b9c12 commit 424c4ba8f90983e5491b41e8dd8d881aedc7bf2a
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/compiler.js
  2. +1 −1 lib/file.js
View
@@ -474,7 +474,7 @@ Compiler.prototype.catalog = function catalog(pages, done) {
// as foreign, so other functions like `html` and `page` can do additional
// checks to include the file.
//
page._dependencies = dependencies.concat(compiler.client).reduce(function reduce(memo, dependency) {
page._dependencies = dependencies.concat(framework.get('name')).reduce(function reduce(memo, dependency) {
var extname = path.extname(dependency) || 'foreign';
memo[extname] = memo[extname] || [];
View
@@ -78,7 +78,7 @@ fuse(File, require('eventemitter3'));
File.readable('location', {
enumerable: false,
get: function get() {
if (this.external) return this.filepath;
if (this.external) return this.filepath + this.extname;
return '/' + this.hash + this.extname;
}
}, true);

0 comments on commit 424c4ba

Please sign in to comment.