[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:
parent
c404804f28
commit
9a5058a6b4
|
@ -1,5 +1,4 @@
|
||||||
openerp.base.list = function (openerp) {
|
openerp.base.list = function (openerp) {
|
||||||
'use strict';
|
|
||||||
openerp.base.views.add('list', 'openerp.base.ListView');
|
openerp.base.views.add('list', 'openerp.base.ListView');
|
||||||
openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListView# */ {
|
openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListView# */ {
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -868,6 +867,7 @@ openerp.base.ListView.Groups = Class.extend( /** @lends openerp.base.ListView.Gr
|
||||||
_(this.children).each(function (child) {
|
_(this.children).each(function (child) {
|
||||||
child.apoptosis();
|
child.apoptosis();
|
||||||
});
|
});
|
||||||
|
this.children = {};
|
||||||
$(this.elements).remove();
|
$(this.elements).remove();
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue