0
1
Fork 0
hedera-web-mindshore/js/vn/lot.js

64 lines
938 B
JavaScript
Raw Normal View History

2016-12-23 08:57:49 +00:00
module.exports = new Class
({
2017-03-30 11:44:53 +00:00
Properties:
{
/**
* The internal object with the params.
*/
params:
{
type: Object
}
}
2016-12-23 08:57:49 +00:00
/**
* Gets a value from the set.
*
* @param {String} field The field name
2017-03-30 11:44:53 +00:00
* @return {*} The field value
2016-12-23 08:57:49 +00:00
*/
2017-03-30 11:44:53 +00:00
,get: function () {}
2016-12-23 08:57:49 +00:00
/**
* Sets a value on the set.
*
* @param {String} field The field name
2017-03-30 11:44:53 +00:00
* @param {*} value The new field value
2016-12-23 08:57:49 +00:00
*/
2017-03-30 11:44:53 +00:00
,set: function () {}
/**
* Returns an array with the set keys.
*
* @return {Array} The set keys
*/
,keys: function () {}
2016-12-23 08:57:49 +00:00
/**
* Emits the 'change' signal on the set.
*/
,changed: function ()
{
this.signalEmit ('change');
}
2017-03-30 11:44:53 +00:00
/**
* Copies all values from another set.
*
* @param {Set} source The source set
*/
,assign: function (source, keys)
{
if (!keys)
keys = source.keys ();
for (var i = 0; i < keys.length; i++)
{
var key = keys[i];
this.set (key, source.get (key));
}
}
2016-12-23 08:57:49 +00:00
});