{"size": 595, "ext": "js", "max_stars_repo_path": "src/virtualdom/items/Component/initialise/createInstance.js", "max_stars_repo_name": "rstacruz/ractive", "max_stars_repo_stars_event_min_datetime": "2015-11-06T10:14:45.000Z", "max_stars_repo_stars_event_max_datetime": "2015-11-06T10:14:45.000Z", "max_issues_repo_path": "src/virtualdom/items/Component/initialise/createInstance.js", "max_issues_repo_name": "rstacruz/ractive", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/virtualdom/items/Component/initialise/createInstance.js", "max_forks_repo_name": "rstacruz/ractive", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.7916666667, "max_line_length": 75, "alphanum_fraction": 0.7243697479}
export default function ( component, Component, data, contentDescriptor ) {
	var instance, parentFragment, partials, root;

	parentFragment = component.parentFragment;
	root = component.root;

	// Make contents available as a {{>content}} partial
	partials = { content: contentDescriptor || [] };

	instance = new Component({
		append: true,
		data: data,
		partials: partials,
		magic: root.magic || Component.defaults.magic,
		modifyArrays: root.modifyArrays,
		_parent: root,
		_component: component,
		// need to inherit runtime parent adaptors
		adapt: root.adapt
	});

	return instance;
}
