Use detach instead of remove

This commit is contained in:
Cédric Krier committed 2013-01-07 18:59:59 +01:00
1 parent 1c66c09c68
commit ffd0aa9666
1 file changed
+3 -1
+3 -1
View File
@@ -64,8 +64,10 @@
var view_widget = Sao.View.parse(this, xml_view, view.field_childs);
this.views.push(view_widget);
if (this.current_view) {
this.current_view.el.detach();
}
this.current_view = view_widget;
this.el.remove();
this.el.append(view_widget.el);
return view_widget;
},