JSDOC/Options.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 30 Jun 2010 10:02:58 +0000 (18:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 30 Jun 2010 10:02:58 +0000 (18:02 +0800)
JSDOC/Options.js

index 1e0e99b..479a85b 100644 (file)
@@ -118,7 +118,7 @@ Options = {
         this.src = [];
         src.forEach(function(v, i) {
             if (!v.length || v[0] != '/') {
         this.src = [];
         src.forEach(function(v, i) {
             if (!v.length || v[0] != '/') {
-                v = _this.baseDir + '/' + v;
+                v = _this.baseDir + (v.length ?  '/' + v : '');
             }
             if (File.isDirectory(v)) {
                 throw {
             }
             if (File.isDirectory(v)) {
                 throw {