radio/libjs/wModel/panesList.js

22 lines
493 B
JavaScript
Raw Normal View History

2018-08-04 21:46:25 +00:00
"use strict";
var List = require("./list");
var Vocabulary = require("../wType/vocabulary");
var PanesList = List.inherit({
"className": "PanesList",
"constructor": function(address) {
List.fn.constructor.call(this, address);
},
"addItem": function(model) {
List.fn.addModel.call(this, model);
var vc = new Vocabulary();
vc.insert("address", model.getAddress());
this.push(vc);
}
});
module.exports = PanesList;