'use strict';
import {Collection} from './collection';
import {Field, Group} from '../types/all';

const defaultProps = {
	items: [],
	theme: null,
	themeVarName: null,
	layout: null
};

export class InfoboxData extends Collection {

	constructor(properties = {}) {
		
		super();

		Object.assign(this, defaultProps, properties);
		
		if (properties.items) {
			this.setItems(properties.items);
		}
	}

	newField(params) {
		return new Field(params);
	}

	newGroup(params) {
		return new Group(params);
	}

}

@@ -332,25 +332,19 @@
 %09%0A%09%09if (
-propertie
+thi
 s.items)
@@ -363,25 +363,19 @@
 etItems(
-propertie
+thi
 s.items)

fix InfoboxData constructor null param error