mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 10:18:42 +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)
|
||||
{
|
||||
// eslint-disable-next-line es5/no-arrow-functions
|
||||
fsTarget[fullscreen.request](Element.ALLOW_KEYBOARD_INPUT).then(() => this.fullscreenSuccessHandler()).catch((error) => this.fullscreenErrorHandler(error));
|
||||
fsTarget[fullscreen.request](Element.ALLOW_KEYBOARD_INPUT)
|
||||
.then(this.fullscreenSuccessHandler)
|
||||
.catch(this.fullscreenErrorHandler);
|
||||
}
|
||||
else
|
||||
{
|
||||
// eslint-disable-next-line es5/no-arrow-functions
|
||||
fsTarget[fullscreen.request](fullscreenOptions).then(() => this.fullscreenSuccessHandler()).catch((error) => this.fullscreenErrorHandler(error));
|
||||
fsTarget[fullscreen.request](fullscreenOptions)
|
||||
.then(this.fullscreenSuccessHandler)
|
||||
.catch(this.fullscreenErrorHandler);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue