The-M-Project
The-M-Project copied to clipboard
do our own garbage collection
Delete every reference that isn't used anymore...
_.each(M.ViewManager.viewList, function(v, k) {if(v && $('#' + v.id).length === 0) {M.ViewManager.viewList[k] = null;}});
- viewList is an array :/
- can be improved
- when to call?