Skip to content

Commit

Permalink
@chikathreesix fixed an object delete error in Chrome. closes #1858
Browse files Browse the repository at this point in the history
  • Loading branch information
chikathreesix authored and heff committed Feb 11, 2015
1 parent 789c729 commit 1905830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

--------------------

Expand Down
2 changes: 2 additions & 0 deletions src/js/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1905830

Please sign in to comment.