UNPKG

lasso

Version:

Lasso.js is a build tool and runtime library for building and bundling all of the resources needed by a web application

18 lines (15 loc) 414 B
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;