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

index c8b6666..0666ec4 100644 (file)
@@ -115,7 +115,7 @@ Options = {
         // append full path to source directories.
         var _this= this;
         this.src.forEach(function(v, i) {
-            if (v[0] != '/') {
+            if (!v.lenght || v[0] != '/') {
                 _this.src[i] = _this.baseDir + '/' + v;
             }
             if (File.isDirectory(_this.src[i])) {