mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #1899 from spayton/updev
Removed use of deprecated signals (enterLandscape & enterPortrait)
This commit is contained in:
commit
1850e287bd
1 changed files with 0 additions and 12 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue