forked from 0x2620/oxjs
fix bugs in map and video player
This commit is contained in:
parent
617ad0e5ca
commit
5803633835
2 changed files with 15 additions and 9 deletions
|
|
@ -1000,9 +1000,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
setSizes(function() {
|
||||
self.options.fullscreen && enterFullscreen();
|
||||
});
|
||||
self.options.fullscreen ? setSizes(enterFullscreen) : setSizes();
|
||||
|
||||
function censor() {
|
||||
if (self.options.type == 'play') {
|
||||
|
|
@ -2102,7 +2100,6 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
|
||||
function toggleFullscreen(from) {
|
||||
// FIXME: hiding controls won't work if video begins in fullscreen
|
||||
var parentOffset, playOnFullscreen;
|
||||
self.options.fullscreen = !self.options.fullscreen;
|
||||
if (!self.options.paused) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue