initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
21
libjs/wModel/panesList.js
Normal file
21
libjs/wModel/panesList.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
"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;
|
Loading…
Add table
Add a link
Reference in a new issue