radio/libjs/wModel/panesList.js
2018-08-05 00:48:17 +03:00

22 lines
493 B
JavaScript

"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;