Skip to content

Commit

Permalink
fix for missing param in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jairajs89 committed Mar 12, 2014
1 parent 8a2157b commit 5595ab0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author" : "Jairaj Sethi <j@jairaj.org> (http://jairaj.org/)",
"name" : "zerver",
"description" : "a modern webapp server",
"version" : "0.15.6",
"version" : "0.15.7",
"license" : "MIT" ,
"repository" : {
"type" : "git",
Expand Down
8 changes: 6 additions & 2 deletions server/static.js
Expand Up @@ -92,9 +92,13 @@ function StaticFiles(options, callback) {
}

if (self._cache) {
self._loadCache(callback);
self._loadCache(finish);
} else {
callback();
finish();
}

function finish() {
callback.call(self);
}
}

Expand Down
6 changes: 4 additions & 2 deletions server/zerver.js
Expand Up @@ -24,11 +24,13 @@ function Zerver(options, callback) {
self._logger = new Logger(self._options);
self._apis = new APICalls(self._options);
self._static = new StaticFiles(self._options, function () {
var staticFiles = this;

if (self._options.missing) {
if (self._options.missing[0] !== '/') {
self._options.missing = '/'+self._options.missing;
}
if ( self._static.get(self._options.missing) ) {
if ( staticFiles.get(self._options.missing) ) {
self._missing = self._options.missing;
}
}
Expand All @@ -47,7 +49,7 @@ function Zerver(options, callback) {
if (apiNames.length) {
console.log('- apis: ' + apiNames.join(', '));
}
var manifestList = self._static.getManifestNames();
var manifestList = staticFiles.getManifestNames();
if (manifestList.length) {
console.log('- manifests: ' + manifestList.join(', '));
}
Expand Down

0 comments on commit 5595ab0

Please sign in to comment.