mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 10:18:42 +00:00
Removed arrow function syntax
This commit is contained in:
parent
9959dce57e
commit
648c0faed9
1 changed files with 6 additions and 4 deletions
|
@ -1203,13 +1203,15 @@ var ScaleManager = new Class({
|
||||||
{
|
{
|
||||||
if (fullscreen.keyboard)
|
if (fullscreen.keyboard)
|
||||||
{
|
{
|
||||||
// eslint-disable-next-line es5/no-arrow-functions
|
fsTarget[fullscreen.request](Element.ALLOW_KEYBOARD_INPUT)
|
||||||
fsTarget[fullscreen.request](Element.ALLOW_KEYBOARD_INPUT).then(() => this.fullscreenSuccessHandler()).catch((error) => this.fullscreenErrorHandler(error));
|
.then(this.fullscreenSuccessHandler)
|
||||||
|
.catch(this.fullscreenErrorHandler);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// eslint-disable-next-line es5/no-arrow-functions
|
fsTarget[fullscreen.request](fullscreenOptions)
|
||||||
fsTarget[fullscreen.request](fullscreenOptions).then(() => this.fullscreenSuccessHandler()).catch((error) => this.fullscreenErrorHandler(error));
|
.then(this.fullscreenSuccessHandler)
|
||||||
|
.catch(this.fullscreenErrorHandler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue