fix memory release check
This commit is contained in:
parent
abb6208650
commit
2fe869e4f0
1 changed files with 2 additions and 1 deletions
|
|
@ -606,7 +606,8 @@ var m = (function app(window, undefined) {
|
|||
if (cached[i]) unload(cached[i]);
|
||||
}
|
||||
}
|
||||
nodes.length = 0;
|
||||
//release memory if nodes is an array. This check should fail if nodes is a NodeList (see loop above)
|
||||
if (nodes.length) nodes.length = 0;
|
||||
}
|
||||
function unload(cached) {
|
||||
if (cached.configContext && isFunction(cached.configContext.onunload)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue