mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Add comments emphasizing the order of steps in widget box remove() methods
This commit is contained in:
parent
e7065d5a9f
commit
247ebf16f0
@ -79,6 +79,9 @@ define([
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
// We remove this widget before removing the children as an optimization
|
||||
// we want to remove the entire container from the DOM first before
|
||||
// removing each individual child separately.
|
||||
BoxView.__super__.remove.apply(this, arguments);
|
||||
this.children_views.remove();
|
||||
},
|
||||
|
@ -128,6 +128,9 @@ define([
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
// We remove this widget before removing the children as an optimization
|
||||
// we want to remove the entire container from the DOM first before
|
||||
// removing each individual child separately.
|
||||
AccordionView.__super__.remove.apply(this, arguments);
|
||||
this.children_views.remove();
|
||||
},
|
||||
@ -252,6 +255,9 @@ define([
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
// We remove this widget before removing the children as an optimization
|
||||
// we want to remove the entire container from the DOM first before
|
||||
// removing each individual child separately.
|
||||
TabView.__super__.remove.apply(this, arguments);
|
||||
this.children_views.remove();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user