mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-12 16:14:37 +02:00
Parens normalisation
This commit is contained in:
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user