Merge pull request #1899 from spayton/updev

Removed use of deprecated signals (enterLandscape & enterPortrait)
This commit is contained in:
Richard Davey 2015-07-10 17:09:35 +01:00
commit 1850e287bd

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)