Javascript memory leak when changing model data in KnockoutJS
问题 We're building a fairly large one-page-application with KnockoutJS as "data-handler". The problem is that when changing model-data, the old models isn't disposed by the garbage collector (as it seems). The application has about 12 different models with computed obserables that you can retreive relations with. In the ViewModel I have a observable array for each of the model. Lets say I fill a array with 100 instances of a model. When I later want to change these 100 to 100 different instances