mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +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 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 (this.incorrectOrientation)
|
||||
|
|
Loading…
Reference in a new issue