JSDOC/Packer.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 21 Jul 2010 11:58:56 +0000 (19:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 21 Jul 2010 11:58:56 +0000 (19:58 +0800)
JSDOC/Packer.js

index e4c3e8b..933156d 100644 (file)
@@ -72,8 +72,8 @@ Packer = function(cfg)
     
     XObject.extend(this, cfg);
     var _this = this;
-    if (this.srcfile.length) {
-        this.srcfile.forEach(function(f) {
+    if (this.srcfiles && this.srcfiles.length) {
+        this.srcfiles.forEach(function(f) {
             _this.loadSourceFile(f);
         });
         
@@ -93,7 +93,7 @@ Packer.prototype = {
     /**
      * @prop srcfiles {String} file containing a list of files/or classes to use.
      */
-    srcfiles : false,
+    srcfile : false,
     
     /**
      * @prop files {Array} list of files to compress (must be full path)