JSDOC/Options.js
[gnome.introspection-doc-generator] / JSDOC / Options.js
index 84abc49..448b6fe 100644 (file)
@@ -115,10 +115,10 @@ Options = {
         // append full path to source directories.
         var _this= this;
         this.src.forEach(function(v, i) {
-            if (v[0] != '/') {
+            if (!v.length || v[0] != '/') {
                 _this.src[i] = _this.baseDir + '/' + v;
             }
-            if (File.isDirectory(this.src[i])) {
+            if (File.isDirectory(_this.src[i])) {
                 throw {
                     name: "ArgumentError", 
                     message: "invalid Source Directory : " +  v