Removed arrow function syntax

This commit is contained in:
jorbascrumps 2019-05-18 19:15:01 -04:00
parent 9959dce57e
commit 648c0faed9

View file

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