lasso
Version:
Lasso.js is a build tool and runtime library for building and bundling all of the resources needed by a web application
19 lines (15 loc) • 413 B
JavaScript
var nextId = 0;
function BundleSetConfig(name) {
this._id = nextId++;
this.name = name;
this.bundleConfigs = [];
}
BundleSetConfig.prototype = {
addBundleConfig: function(bundleConfig) {
this.bundleConfigs.push(bundleConfig);
},
forEachBundleConfig: function(callback, thisObj) {
this.bundleConfigs.forEach(callback, thisObj);
}
};
module.exports = BundleSetConfig;