Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

do our own garbage collection #80

Open
hano opened this issue Sep 12, 2012 · 0 comments
Open

do our own garbage collection #80

hano opened this issue Sep 12, 2012 · 0 comments

Comments

@hano
Copy link
Contributor

hano commented Sep 12, 2012

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?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant