[FIX] group cleanup issue during apoptosis: remove all children from storage otherwise risk of zombie children

bzr revid: xmo@openerp.com-20110531063313-gv7z5vhwnrt5x6pg
This commit is contained in:
Xavier Morel 2011-05-31 08:33:13 +02:00
parent c404804f28
commit 9a5058a6b4
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,4 @@
openerp.base.list = function (openerp) {
'use strict';
openerp.base.views.add('list', 'openerp.base.ListView');
openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListView# */ {
defaults: {
@ -868,6 +867,7 @@ openerp.base.ListView.Groups = Class.extend( /** @lends openerp.base.ListView.Gr
_(this.children).each(function (child) {
child.apoptosis();
});
this.children = {};
$(this.elements).remove();
return this;
},