1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-12 16:14:37 +02:00

Parens normalisation

This commit is contained in:
Antonio Laguna
2017-04-29 22:51:03 +02:00
parent 1de7249a65
commit d1840ec016
3 changed files with 7 additions and 6 deletions

View File

@@ -110,6 +110,7 @@
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"spaced-comment": [2, "always"],
"space-in-parens": [2, "never"],
// ECMAScript 6
// http://eslint.org/docs/rules/#ecmascript-6

View File

@@ -51,7 +51,7 @@ export default class Zoom {
if (!this.isZoomed_ && Keys.MINUS.includes(event.which)) {
this.zoomIn();
} else if (this.isZoomed_ &&
(Keys.PLUS.includes( event.which ) || event.which == Keys.ESCAPE ) ) {
(Keys.PLUS.includes(event.which) || event.which === Keys.ESCAPE)) {
this.zoomOut();
}
}