mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 18:28:57 +00:00
Merge pull request #4539 from jorbascrumps/fix-arrow-fn-syntax
Removes arrow function syntax
This commit is contained in:
commit
7bcd4955e2
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