JSDOC/BuildDocs.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 08:47:49 +0000 (16:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 08:47:49 +0000 (16:47 +0800)
JSDOC/BuildDocs.js

index 4cf9bee..33b50d7 100644 (file)
@@ -67,9 +67,10 @@ BuildDocs = {
             ext = Options.ext.split(",").map(function($) {return $.toLowerCase()});
         }
         
-        for (var i = 0; i < JSDOC.opt._.length; i++) {
+        for (var i = 0; i < Options.files.length; i++) {
             this.srcFiles = this.srcFiles.concat(
-                IO.ls(JSDOC.opt._[i], JSDOC.opt.r).filter(
+            
+                File.list(Options.files[i] ).filter(
                     function($) {
                         var thisExt = $.split(".").pop().toLowerCase();
                         return (ext.indexOf(thisExt) > -1 || thisExt in JSDOC.handlers); // we're only interested in files with certain extensions