1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

@chikathreesix fixed an object delete error in Chrome. closes #1858

This commit is contained in:
Ryo Chikazawa 2015-02-11 11:12:54 -08:00 committed by heff
parent 789c72945a
commit 19058302bd
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ CHANGELOG
* @mmcc fixed an issue with text track hiding introduced in #1681 ([view](https://github.com/videojs/video.js/pull/1804))
* Export video.js as a named AMD module ([view](https://github.com/videojs/video.js/pull/1844))
* Hide the poster when play fires ([view](https://github.com/videojs/video.js/pull/1834))
* @chikathreesix fixed an object delete error in Chrome ([view](https://github.com/videojs/video.js/pull/1858))
--------------------

View File

@ -245,6 +245,8 @@ vjs.getData = function(el){
var id = el[vjs.expando];
if (!id) {
id = el[vjs.expando] = vjs.guid++;
}
if (!vjs.cache[id]) {
vjs.cache[id] = {};
}
return vjs.cache[id];