1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-12 11:15:04 +02:00

Merge pull request #2218 from mmcc/ie10-flex-check

added IE10 flex support check
This commit is contained in:
Steve Heffernan 2015-06-04 17:37:50 -07:00
commit 040410122f

View File

@ -2257,10 +2257,13 @@ Player.prototype.handleError;
Player.prototype.flexNotSupported_ = function() {
var elem = document.createElement('i');
// Note: We don't actually use flexBasis (or flexOrder), but it's one of the more
// common flex features that we can rely on when checking for flex support.
return !('flexBasis' in elem.style ||
'webkitFlexBasis' in elem.style ||
'mozFlexBasis' in elem.style ||
'msFlexBasis' in elem.style);
'msFlexBasis' in elem.style ||
'msFlexOrder' in elem.style /* IE10-specific (2012 flex spec) */);
};
Component.registerComponent('Player', Player);