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);
});
/**
* @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)