Docs and style in lib/list

This commit is contained in:
Anatoliy Chakkaev 2012-11-20 18:37:04 +07:00
parent 26b299eb62
commit c252926f34
1 changed files with 25 additions and 17 deletions

View File

@ -1,6 +1,14 @@
module.exports = List; module.exports = List;
/**
* List class provides functionality of nested collection
*
* @param {Array} data - array of items.
* @param {Crap} type - array with some type information? TODO: rework this API.
* @param {AbstractClass} parent - owner of list.
* @constructor
*/
function List(data, type, parent) { function List(data, type, parent) {
var list = this; var list = this;