1
0
Fork 0
forked from 0x2620/oxjs

fix bugs in map and video player

This commit is contained in:
rlx 2011-12-23 05:05:41 +00:00
commit 5803633835
2 changed files with 15 additions and 9 deletions

View file

@ -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) {