Merge pull request #4539 from jorbascrumps/fix-arrow-fn-syntax

Removes arrow function syntax
This commit is contained in:
Richard Davey 2019-05-19 08:15:09 +01:00 committed by GitHub
commit 7bcd4955e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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