forked from 0x2620/oxjs
move video GC workaround into VideoElement
This commit is contained in:
parent
96cbf49579
commit
9da1540653
2 changed files with 11 additions and 3 deletions
|
|
@ -20,9 +20,6 @@ Ox.GarbageCollection = (function() {
|
|||
Object.keys(Ox.UI.elements).forEach(function(id) {
|
||||
var $element = Ox.UI.elements[id];
|
||||
if ($element && Ox.isUndefined($element.$element.data('oxid'))) {
|
||||
//Chrome does not properly release resources, reset manually
|
||||
//http://code.google.com/p/chromium/issues/detail?id=31014
|
||||
$element.find('video').attr({src: ''});
|
||||
$element.remove();
|
||||
delete Ox.UI.elements[id];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue