Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jun 10, 2020
1 parent d7a6f64 commit decc8b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9798,7 +9798,7 @@ class WCCodeMirror extends HTMLElement {
let viewportMargin = CodeMirror.defaults.viewportMargin;
if (this.hasAttribute('viewport-margin')) {
const viewportMarginAttr = this.getAttribute('viewport-margin').toLowerCase();
viewportMargin = viewportMarginAttr === 'infinity' ? Infinity : parseInt(viewportMarginAttr);
viewportMargin = viewportMarginAttr === 'infinity' ? Infinity : parseInt(viewportMarginAttr);
}

this.__editor = CodeMirror.fromTextArea(this.__element, {
Expand Down
2 changes: 1 addition & 1 deletion src/wc-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class WCCodeMirror extends HTMLElement {
let viewportMargin = CodeMirror.defaults.viewportMargin;
if (this.hasAttribute('viewport-margin')) {
const viewportMarginAttr = this.getAttribute('viewport-margin').toLowerCase();
viewportMargin = viewportMarginAttr === 'infinity' ? Infinity : parseInt(viewportMarginAttr);
viewportMargin = viewportMarginAttr === 'infinity' ? Infinity : parseInt(viewportMarginAttr);
}

this.__editor = CodeMirror.fromTextArea(this.__element, {
Expand Down

0 comments on commit decc8b8

Please sign in to comment.