diff --git a/source/Ox.UI/js/Core/GarbageCollection.js b/source/Ox.UI/js/Core/GarbageCollection.js index b1b33281..01b13c2f 100644 --- a/source/Ox.UI/js/Core/GarbageCollection.js +++ b/source/Ox.UI/js/Core/GarbageCollection.js @@ -19,7 +19,7 @@ Ox.GarbageCollection = (function() { var len = Ox.len(Ox.UI.elements); Object.keys(Ox.UI.elements).forEach(function(id) { var $element = Ox.UI.elements[id]; - if ($element && Ox.isUndefined($element.$element.data('oxid'))) { + if ($element && Ox.isUndefined($element.data('oxid'))) { $element.remove(); delete Ox.UI.elements[id]; }