dereference unused dom elements, controllers and components

This commit is contained in:
Leo Horie 2015-07-23 22:10:59 -04:00
parent 5baab5f034
commit 54ea70d2d6

View file

@ -778,6 +778,11 @@ var m = (function app(window, undefined) {
endFirstComputation();
return controllers[index];
}
if (!component) {
roots.splice(index, 1)
controllers.splice(index, 1)
components.splice(index, 1)
}
};
var redrawing = false, forcing = false;
m.redraw = function(force) {