dereference unused dom elements, controllers and components
This commit is contained in:
parent
5baab5f034
commit
54ea70d2d6
1 changed files with 5 additions and 0 deletions
|
|
@ -778,6 +778,11 @@ var m = (function app(window, undefined) {
|
||||||
endFirstComputation();
|
endFirstComputation();
|
||||||
return controllers[index];
|
return controllers[index];
|
||||||
}
|
}
|
||||||
|
if (!component) {
|
||||||
|
roots.splice(index, 1)
|
||||||
|
controllers.splice(index, 1)
|
||||||
|
components.splice(index, 1)
|
||||||
|
}
|
||||||
};
|
};
|
||||||
var redrawing = false, forcing = false;
|
var redrawing = false, forcing = false;
|
||||||
m.redraw = function(force) {
|
m.redraw = function(force) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue