GarbageCollection: use , not .
This commit is contained in:
parent
ac3b736e72
commit
e4cb30724f
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ Ox.GarbageCollection = (function() {
|
||||||
var len = Ox.len(Ox.UI.elements);
|
var len = Ox.len(Ox.UI.elements);
|
||||||
Object.keys(Ox.UI.elements).forEach(function(id) {
|
Object.keys(Ox.UI.elements).forEach(function(id) {
|
||||||
var $element = Ox.UI.elements[id];
|
var $element = Ox.UI.elements[id];
|
||||||
if ($element && Ox.isUndefined($element.$element.data('oxid'))) {
|
if ($element && Ox.isUndefined($element.data('oxid'))) {
|
||||||
$element.remove();
|
$element.remove();
|
||||||
delete Ox.UI.elements[id];
|
delete Ox.UI.elements[id];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue