Removed use of deprecated signals (enterLandscape & enterPortrait)

This commit is contained in:
spayton 2015-07-10 14:42:17 +01:00
parent 8e92c13412
commit 37e0efefe3

View file

@ -1209,18 +1209,6 @@ Phaser.ScaleManager.prototype = {
var changed = previousOrientation !== this.screenOrientation; var changed = previousOrientation !== this.screenOrientation;
var correctnessChanged = previouslyIncorrect !== this.incorrectOrientation; var correctnessChanged = previouslyIncorrect !== this.incorrectOrientation;
if (changed)
{
if (this.isLandscape)
{
this.enterLandscape.dispatch(this.orientation, true, false);
}
else
{
this.enterPortrait.dispatch(this.orientation, false, true);
}
}
if (correctnessChanged) if (correctnessChanged)
{ {
if (this.incorrectOrientation) if (this.incorrectOrientation)