ScaleManager - minor fullscreenerror fixes

- IE9 compatibility (no setWindow arguments)
- And removed code that assumpted event.target was the canvas..
This commit is contained in:
Paul 2014-10-31 19:41:55 -07:00
parent 9b319019e7
commit d89c709020

View file

@ -1267,8 +1267,9 @@ Phaser.ScaleManager.prototype = {
if (!this.supportsFullScreen)
{
setTimeout(function (scaleManager) {
scaleManager.fullScreenError();
var _this = this;
setTimeout(function () {
_this.fullScreenError();
}, 10, this);
return;
}
@ -1426,11 +1427,8 @@ Phaser.ScaleManager.prototype = {
this.event = event;
if (typeof event === 'undefined' || event.target === this.fullScreenTarget)
{
console.warn("Phaser.ScaleManager: requestFullscreen failed or device does not support the Fullscreen API");
this.fullScreenFailed.dispatch();
}
},