diff options
Diffstat (limited to 'app/assets/javascripts/zen_mode.js')
-rw-r--r-- | app/assets/javascripts/zen_mode.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/zen_mode.js b/app/assets/javascripts/zen_mode.js index 5438572eadf..7a60ab1380f 100644 --- a/app/assets/javascripts/zen_mode.js +++ b/app/assets/javascripts/zen_mode.js @@ -1,4 +1,4 @@ -/* eslint-disable func-names, prefer-arrow-callback, consistent-return, camelcase, class-methods-use-this */ +/* eslint-disable func-names, consistent-return, camelcase, class-methods-use-this */ // Zen Mode (full screen) textarea // @@ -39,11 +39,11 @@ export default class ZenMode { constructor() { this.active_backdrop = null; this.active_textarea = null; - $(document).on('click', '.js-zen-enter', function(e) { + $(document).on('click', '.js-zen-enter', e => { e.preventDefault(); return $(e.currentTarget).trigger('zen_mode:enter'); }); - $(document).on('click', '.js-zen-leave', function(e) { + $(document).on('click', '.js-zen-leave', e => { e.preventDefault(); return $(e.currentTarget).trigger('zen_mode:leave'); }); @@ -67,7 +67,7 @@ export default class ZenMode { }; })(this), ); - $(document).on('keydown', function(e) { + $(document).on('keydown', e => { // Esc if (e.keyCode === 27) { e.preventDefault(); |