<commit_before>import Component from '../../view/components/component';

class CellEditor extends Component {
	constructor() {
		super();
	}
	
	close() {
		this.onClose();
	}
}

CellEditor.$inject = [];

export default {
	transclude: true,
	templateUrl: 'qgrid.plugin.cell-editor.tpl.html',
	controller: CellEditor,
	controllerAs: '$editor',
	bindings: {
		'onClose': '&'
	}
};
<commit_msg>close editor on scene changed<commit_after>import Component from '../../view/components/component';
import {VIEW_CORE_NAME} from '@grid/view/definition';

class CellEditor extends Component {
	constructor() {
		super();
	}

	onInit() {
		const model = this.$view.model;
		this.using(model.sceneChanged.on(() => this.close()));
	}

	close() {
		this.onClose();
	}
}

CellEditor.$inject = [];

export default {
	transclude: true,
	templateUrl: 'qgrid.plugin.cell-editor.tpl.html',
	controller: CellEditor,
	controllerAs: '$editor',
	bindings: {
		'onClose': '&'
	},
	require: {
		$view: `^^${VIEW_CORE_NAME}`
	}
};

{'fraction_non_alphanumeric': 0.17846460618145563, 'fraction_numerical': 0.0, 'mean_word_length': 4.28421052631579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4654597', 'n_tokens_mistral': 355, 'n_tokens_neox': 346, 'n_words': 67}