Source: node_modules/cbsection/cbsection.js

var $ = require('jquery');
/**
 * Base object to create sections . This object storate others sections and cbobjects elements 
 * @class CBSection
 * @param {Object} dataobject
 * @param {CBSection[]} dataobject.sections Subsections inside this section
 * @param {CBObject[]} dataobject.content Elements available in this section
 * @param {String} dataobject.type Type of object. This info is usefull to restore when load project
 * @param {String} dataobject.name Secion name.
 */
function CBSection(dataobject){

	dataobject = typeof dataobject !== 'undefined' ? dataobject : {};
	this.sections = typeof dataobject.sections !== 'undefined' ? dataobject.sections : [];
	this.content = typeof dataobject.content !== 'undefined' ? dataobject.content : [];
	this.type = "section.base";
	this.name = typeof dataobject.name !== 'undefined' ? dataobject.name : "";
}

module.exports = CBSection;