﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12018	[Nested widgets] Widgets garbage collecting needs to be reviewed	Piotrek Koszuliński	Piotrek Koszuliński	"Part of: #10931.

1. Should `repo.destroy( widget)` destroy also its nested widgets?
2. Should existing nested widgets be destroyed when setting nested editable's data? I think so, but then that will happen also on first widget initialization (on `editor.setData()`).
3. I think that we'll need a new parameter for `destroyAll()` which will limit it to specific container. Or maybe better - we need a new method for that, because such parameter will change the method's algorithm completely. This method would be used in nested editable's `setData()`.
4. If nested widgets will be destroyed when destroying outer widget, then `repository.destroyAll()` may need to be rewrote, because it iterates over instances object which will be uncontrollably mutated and the order in which widgets are destroyed will be unpredictable. So, perhaps a better idea is to destroy only outer widgets in `destroyAll()`, so inner ones are reached in instances order.
5. `repo.checkWidgets` bases on these methods so it has to be tested and modified accordingly."	Bug	closed	Normal	CKEditor 4.5.0 Beta	UI : Widgets	4.3 Beta	fixed		
