var Object = require ('./object'); var Set = require ('./set'); module.exports = new Class ({ Extends: Object ,Implements: Set ,Tag: 'vn-basic-set' ,initialize: function (props) { this._params = {}; this.parent (props); } /** * Gets a value from the set. * * @param {String} paramName The parameter name * @return {any} The value */ ,get: function (paramName) { return this._params[paramName]; } /** * Sets a value on the set. * * @param {String} paramName The parameter name * @param {any} value The new value */ ,set: function (paramName, value) { this._params[paramName] = value; this.changed (); } /** * Resets all values. */ ,reset: function () { this._params = {}; this.changed (); } });