GarbageCollection: use , not .

This commit is contained in:
rlx 2014-09-22 16:25:43 +02:00
parent ac3b736e72
commit e4cb30724f

View file

@ -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];
} }